mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-27 17:51:27 +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:
@@ -1011,6 +1011,13 @@ typedef struct AVPanScan{
|
||||
* - decoding: Read by user.\
|
||||
*/\
|
||||
int64_t pkt_pos;\
|
||||
\
|
||||
/**\
|
||||
* reordered sample aspect ratio for the video frame, 0/1 if unknown\unspecified
|
||||
* - encoding: unused\
|
||||
* - decoding: Read by user.\
|
||||
*/\
|
||||
AVRational sample_aspect_ratio;\
|
||||
|
||||
|
||||
#define FF_QSCALE_TYPE_MPEG1 0
|
||||
|
||||
Reference in New Issue
Block a user