mirror of https://git.ffmpeg.org/ffmpeg.git
update sync_opts for video frame copy patch by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)
Originally committed as revision 3605 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8b4d077fc9
commit
daed32f7d0
4
ffmpeg.c
4
ffmpeg.c
|
@ -1248,8 +1248,10 @@ static int output_packet(AVInputStream *ist, int ist_index,
|
||||||
|
|
||||||
if(ost->st->codec.codec_type == CODEC_TYPE_AUDIO)
|
if(ost->st->codec.codec_type == CODEC_TYPE_AUDIO)
|
||||||
audio_size += data_size;
|
audio_size += data_size;
|
||||||
else if (ost->st->codec.codec_type == CODEC_TYPE_VIDEO)
|
else if (ost->st->codec.codec_type == CODEC_TYPE_VIDEO) {
|
||||||
video_size += data_size;
|
video_size += data_size;
|
||||||
|
ost->sync_opts++;
|
||||||
|
}
|
||||||
|
|
||||||
opkt.stream_index= ost->index;
|
opkt.stream_index= ost->index;
|
||||||
opkt.data= data_buf;
|
opkt.data= data_buf;
|
||||||
|
|
Loading…
Reference in New Issue