diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-11-13 09:35:44 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-12-06 10:30:28 +0100 |
commit | 99d2fa38ad62d27ea754489e1b13c487970f47d6 (patch) | |
tree | f9174b39a7eb568f204bb32f609fce5b2bc4b9bf /fftools/ffmpeg_filter.c | |
parent | 1d536e028372218681d57100c546adfc805c3faa (diff) | |
download | ffmpeg-99d2fa38ad62d27ea754489e1b13c487970f47d6.tar.gz |
fftools/ffmpeg: make sure FrameData is writable when we modify it
Also, add a function that returns const FrameData* for cases that only
read from it.
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r-- | fftools/ffmpeg_filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 0f7c076d59..3172ae25ec 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -1859,9 +1859,9 @@ static int choose_out_timebase(OutputFilterPriv *ofp, AVFrame *frame) FPSConvContext *fps = &ofp->fps; AVRational tb = (AVRational){ 0, 0 }; AVRational fr; - FrameData *fd; + const FrameData *fd; - fd = frame_data(frame); + fd = frame_data_c(frame); // apply -enc_time_base if (ofp->enc_timebase.num == ENC_TIME_BASE_DEMUX && |