mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-13 19:05:37 +00:00
Merge commit '43e7f0797f'
* commit '43e7f0797f':
flvenc: only write the framerate tag based on avg_frame_rate
Conflicts:
tests/ref/lavf/flv_fmt
tests/ref/seek/lavf-flv_fmt
tests/ref/seek/vsynth2-flv
tests/ref/vsynth/vsynth1-flashsv
tests/ref/vsynth/vsynth1-flv
tests/ref/vsynth/vsynth2-flashsv
tests/ref/vsynth/vsynth2-flv
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
e46cc1dab0
1 changed files with 4 additions and 4 deletions
|
|
@ -209,8 +209,6 @@ static int flv_write_header(AVFormatContext *s)
|
|||
if (s->streams[i]->avg_frame_rate.den &&
|
||||
s->streams[i]->avg_frame_rate.num) {
|
||||
framerate = av_q2d(s->streams[i]->avg_frame_rate);
|
||||
} else {
|
||||
framerate = 1 / av_q2d(s->streams[i]->codec->time_base);
|
||||
}
|
||||
if (video_enc) {
|
||||
av_log(s, AV_LOG_ERROR,
|
||||
|
|
@ -317,8 +315,10 @@ static int flv_write_header(AVFormatContext *s)
|
|||
put_amf_string(pb, "videodatarate");
|
||||
put_amf_double(pb, video_enc->bit_rate / 1024.0);
|
||||
|
||||
put_amf_string(pb, "framerate");
|
||||
put_amf_double(pb, framerate);
|
||||
if (framerate != 0.0) {
|
||||
put_amf_string(pb, "framerate");
|
||||
put_amf_double(pb, framerate);
|
||||
}
|
||||
|
||||
put_amf_string(pb, "videocodecid");
|
||||
put_amf_double(pb, video_enc->codec_tag);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue