Commit 6ff9b422 authored by Francois Oligny-Lemieux's avatar Francois Oligny-Lemieux Committed by Guillaume Poirier

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

Originally committed as revision 7904 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2d241e66
...@@ -8314,7 +8314,7 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -8314,7 +8314,7 @@ static int decode_frame(AVCodecContext *avctx,
h->got_avcC = 1; h->got_avcC = 1;
} }
if(!h->is_avc && s->avctx->extradata_size && s->picture_number==0){ if(avctx->frame_number==0 && !h->is_avc && s->avctx->extradata_size){
if(decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) < 0) if(decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) < 0)
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment