1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avformat/movenchint: Fix movhinting with ff_rtp_chain_mux_open() from abb810db03

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-05-30 22:51:57 +02:00
parent 692757062a
commit 1fe40e1b05

View File

@ -33,6 +33,7 @@ int ff_mov_init_hinting(AVFormatContext *s, int index, int src_index)
MOVTrack *src_track = &mov->tracks[src_index];
AVStream *src_st = s->streams[src_index];
int ret = AVERROR(ENOMEM);
AVRational src_timebase = src_st->time_base;
track->tag = MKTAG('r','t','p',' ');
track->src_track = src_index;
@ -48,6 +49,8 @@ int ff_mov_init_hinting(AVFormatContext *s, int index, int src_index)
if (ret < 0)
goto fail;
src_st->time_base = src_timebase; // prevent ff_rtp_chain_mux_open() from corrupting the timebase
/* Copy the RTP AVStream timebase back to the hint AVStream */
track->timescale = track->rtp_ctx->streams[0]->time_base.den;