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.
This commit is contained in:
Anton Khirnov
2023-11-13 09:35:44 +01:00
parent 1d536e0283
commit 99d2fa38ad
3 changed files with 21 additions and 6 deletions

View File

@@ -726,6 +726,8 @@ int subtitle_wrap_frame(AVFrame *frame, AVSubtitle *subtitle, int copy);
*/
FrameData *frame_data(AVFrame *frame);
const FrameData *frame_data_c(AVFrame *frame);
int ifilter_send_frame(InputFilter *ifilter, AVFrame *frame, int keep_reference);
int ifilter_send_eof(InputFilter *ifilter, int64_t pts, AVRational tb);
int ifilter_sub2video(InputFilter *ifilter, const AVFrame *frame);