[FFmpeg-devel] [PATCH 3/5] tools/uncoded_frame: Fix direct use of r_frame_rate
Michael Niedermayer
michael at niedermayer.cc
Wed Jun 29 21:36:41 CEST 2016
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
tools/uncoded_frame.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/uncoded_frame.c b/tools/uncoded_frame.c
index 3ca2ba4..f0def44 100644
--- a/tools/uncoded_frame.c
+++ b/tools/uncoded_frame.c
@@ -169,8 +169,8 @@ int main(int argc, char **argv)
switch (st->link->type) {
case AVMEDIA_TYPE_VIDEO:
st->stream->codec->codec_id = AV_CODEC_ID_RAWVIDEO;
- st->stream->avg_frame_rate =
- st->stream-> r_frame_rate = av_buffersink_get_frame_rate(st->sink);
+ st->stream->avg_frame_rate = av_buffersink_get_frame_rate(st->sink);
+ av_stream_set_r_frame_rate(st->stream, st->stream->avg_frame_rate);
st->stream->codec->width = st->link->w;
st->stream->codec->height = st->link->h;
st->stream->codec->sample_aspect_ratio = st->link->sample_aspect_ratio;
--
1.7.9.5
More information about the ffmpeg-devel
mailing list