comparison h264.c @ 2384:6ffcdd96ae99 libavcodec

uppercase codec_tag=AVC1 support
author michael
date Thu, 09 Dec 2004 22:04:15 +0000
parents 3c2abf00b7c1
children 299f2d85d27d
comparison
equal deleted inserted replaced
2383:3c2abf00b7c1 2384:6ffcdd96ae99
2246 s->low_delay= 1; 2246 s->low_delay= 1;
2247 avctx->pix_fmt= PIX_FMT_YUV420P; 2247 avctx->pix_fmt= PIX_FMT_YUV420P;
2248 2248
2249 decode_init_vlc(h); 2249 decode_init_vlc(h);
2250 2250
2251 if(avctx->codec_tag != 0x31637661) // avc1 2251 if(avctx->codec_tag != 0x31637661 && avctx->codec_tag != 0x31435641) // avc1
2252 h->is_avc = 0; 2252 h->is_avc = 0;
2253 else { 2253 else {
2254 if((avctx->extradata_size == 0) || (avctx->extradata == NULL)) { 2254 if((avctx->extradata_size == 0) || (avctx->extradata == NULL)) {
2255 av_log(avctx, AV_LOG_ERROR, "AVC codec requires avcC data\n"); 2255 av_log(avctx, AV_LOG_ERROR, "AVC codec requires avcC data\n");
2256 return -1; 2256 return -1;