mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
lavc: add a sample_aspect_ratio field to AVFrame
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.
This commit is contained in:
2
ffplay.c
2
ffplay.c
@ -1688,7 +1688,7 @@ static int input_request_frame(AVFilterLink *link)
|
||||
|
||||
picref->pts = pts;
|
||||
picref->pos = priv->frame->pkt_pos;
|
||||
picref->video->pixel_aspect = priv->is->video_st->codec->sample_aspect_ratio;
|
||||
picref->video->pixel_aspect = priv->frame->sample_aspect_ratio;
|
||||
avfilter_start_frame(link, picref);
|
||||
avfilter_draw_slice(link, 0, link->h, 1);
|
||||
avfilter_end_frame(link);
|
||||
|
Reference in New Issue
Block a user