The sample aspect ratio is a per-frame property, so it makes sense to define it in AVFrame rather than in the codec/stream context. Simplify application-level sample aspect ratio information extraction, and allow further simplifications.
Showing the changes to libavfilter/vsrc_buffer.h (1 of 10 files). Show all
Unified · Split
| @@ -31,10 +31,10 @@ · 30 unmodified lines | ||
| 31 | 31 | #include "avfilter.h" |
| 32 | 32 | |
| 33 | 33 | int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, |
| 34 | − int64_t pts, AVRational pixel_aspect); | |
| 34 | + int64_t pts); | |
| 35 | 35 | |
| 36 | 36 | int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame, |
| 37 | − int64_t pts, AVRational pixel_aspect, int width, | |
| 37 | + int64_t pts, int width, | |
| 38 | 38 | int height, enum PixelFormat pix_fmt, |
| 39 | 39 | const char *sws_param); |
| 40 | 40 | |