mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
Merge commit '194be1f43ea391eb986732707435176e579265aa'
* commit '194be1f43ea391eb986732707435176e579265aa': lavf: switch to AVStream.time_base as the hint for the muxer timebase Conflicts: doc/APIchanges libavformat/filmstripenc.c libavformat/movenc.c libavformat/mxfenc.c libavformat/oggenc.c libavformat/swf.h libavformat/version.h tests/ref/lavf/mkv Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -315,6 +315,8 @@ static int rm_write_header(AVFormatContext *s)
|
||||
}
|
||||
|
||||
for(n=0;n<s->nb_streams;n++) {
|
||||
AVStream *st = s->streams[n];
|
||||
|
||||
s->streams[n]->id = n;
|
||||
codec = s->streams[n]->codec;
|
||||
stream = &rm->streams[n];
|
||||
@@ -334,7 +336,8 @@ static int rm_write_header(AVFormatContext *s)
|
||||
break;
|
||||
case AVMEDIA_TYPE_VIDEO:
|
||||
rm->video_stream = stream;
|
||||
stream->frame_rate = (float)codec->time_base.den / (float)codec->time_base.num;
|
||||
// TODO: should be avg_frame_rate
|
||||
stream->frame_rate = (float)st->time_base.den / (float)st->time_base.num;
|
||||
/* XXX: dummy values */
|
||||
stream->packet_max_size = 4096;
|
||||
stream->nb_packets = 0;
|
||||
|
||||
Reference in New Issue
Block a user