Now that pix_fmt, width, and height are directly embedded in the AVFrame, there is no need to pass these values as separate arguments.
Showing the changes to libavfilter/vsrc_buffer.h (1 of 3 files). Show all
Unified · Split
| @@ -30,12 +30,9 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "libavcodec/avcodec.h" /* AVFrame */ |
| 31 | 31 | #include "avfilter.h" |
| 32 | 32 | |
| 33 | −int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, | |
| 34 | − int64_t pts); | |
| 33 | +int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame); | |
| 35 | 34 | |
| 36 | 35 | int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame, |
| 37 | − int64_t pts, int width, | |
| 38 | − int height, enum PixelFormat pix_fmt, | |
| 39 | 36 | const char *sws_param); |
| 40 | 37 | |
| 41 | 38 | #endif /* AVFILTER_VSRC_BUFFER_H */ |