comparison dca.c @ 8226:ee1b8c54a603 libavcodec

Add support for parsing and decoding DCA-HD streams.
author kostya
date Sat, 29 Nov 2008 10:06:37 +0000
parents 146ac82af1e5
children e9d9d946f213
comparison
equal deleted inserted replaced
8225:d133e597db2d 8226:ee1b8c54a603
1173 const uint16_t *ssrc = (const uint16_t *) src; 1173 const uint16_t *ssrc = (const uint16_t *) src;
1174 uint16_t *sdst = (uint16_t *) dst; 1174 uint16_t *sdst = (uint16_t *) dst;
1175 PutBitContext pb; 1175 PutBitContext pb;
1176 1176
1177 if((unsigned)src_size > (unsigned)max_size) { 1177 if((unsigned)src_size > (unsigned)max_size) {
1178 av_log(NULL, AV_LOG_ERROR, "Input frame size larger then DCA_MAX_FRAME_SIZE!\n"); 1178 // av_log(NULL, AV_LOG_ERROR, "Input frame size larger then DCA_MAX_FRAME_SIZE!\n");
1179 return -1; 1179 // return -1;
1180 src_size = max_size;
1180 } 1181 }
1181 1182
1182 mrk = AV_RB32(src); 1183 mrk = AV_RB32(src);
1183 switch (mrk) { 1184 switch (mrk) {
1184 case DCA_MARKER_RAW_BE: 1185 case DCA_MARKER_RAW_BE: