Skip to content

Commit

Permalink
fix(ffmpeg_utils): set the fps meta to steam
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Feb 24, 2020
1 parent ed5e311 commit 68afe48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framework/utils/ffmpeg_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ int set_stream_meta(struct AVStream *pStream, Stream_meta *meta)
codecpar->format = meta->pixel_fmt;
}

pStream->r_frame_rate = av_d2q(meta->avg_fps, 1000);
break;

case STREAM_TYPE_AUDIO:
Expand Down

0 comments on commit 68afe48

Please sign in to comment.