mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
lavc: add format field to AVFrame
The format is a per-frame property, having it in AVFrame simplify the operation of extraction of that information, since avoids the need to access the codec/stream context.
This commit is contained in:
@@ -1025,6 +1025,15 @@ typedef struct AVPanScan{
|
||||
* - decoding: Read by user.\
|
||||
*/\
|
||||
int width, height;\
|
||||
\
|
||||
/**\
|
||||
* format of the frame, -1 if unknown or unset\
|
||||
* It should be cast to the corresponding enum (enum PixelFormat\
|
||||
* for video, enum AVSampleFormat for audio)\
|
||||
* - encoding: unused\
|
||||
* - decoding: Read by user.\
|
||||
*/\
|
||||
int format;\
|
||||
|
||||
|
||||
#define FF_QSCALE_TYPE_MPEG1 0
|
||||
|
||||
Reference in New Issue
Block a user