comparison h264.c @ 4507:b80c704183e9 libavcodec

always decode extradata when of non-avc stream (like RTSP) Patch by Francois Oligny-Lemieux % eucloid A gmail P com % Original thread: Date: Feb 9, 2007 12:00 AM Subject: [Ffmpeg-devel] h264.c patch, always decoding extradata when on non avc stream
author gpoirier
date Fri, 09 Feb 2007 22:25:29 +0000
parents 20944c70a3c0
children a8082e1ed672
comparison
equal deleted inserted replaced
4506:709ddd620e04 4507:b80c704183e9
8312 h->nal_length_size = ((*(((char*)(avctx->extradata))+4))&0x03)+1; 8312 h->nal_length_size = ((*(((char*)(avctx->extradata))+4))&0x03)+1;
8313 // Do not reparse avcC 8313 // Do not reparse avcC
8314 h->got_avcC = 1; 8314 h->got_avcC = 1;
8315 } 8315 }
8316 8316
8317 if(!h->is_avc && s->avctx->extradata_size && s->picture_number==0){ 8317 if(avctx->frame_number==0 && !h->is_avc && s->avctx->extradata_size){
8318 if(decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) < 0) 8318 if(decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) < 0)
8319 return -1; 8319 return -1;
8320 } 8320 }
8321 8321
8322 buf_index=decode_nal_units(h, buf, buf_size); 8322 buf_index=decode_nal_units(h, buf, buf_size);