diff options
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index db17917b8a..21bd60881b 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1243,6 +1243,22 @@ typedef struct AVFrame { uint8_t motion_subsample_log2; /** + * Sample rate of the audio data. + * + * - encoding: unused + * - decoding: read by user + */ + int sample_rate; + + /** + * Channel layout of the audio data. + * + * - encoding: unused + * - decoding: read by user. + */ + uint64_t channel_layout; + + /** * frame timestamp estimated using various heuristics, in stream time base * Code outside libavcodec should access this field using: * av_frame_get_best_effort_timestamp(frame) @@ -1260,24 +1276,6 @@ typedef struct AVFrame { */ int64_t pkt_pos; - /** - * channel layout of the audio frame - * - encoding: unused - * - decoding: read by user. - * Code outside libavcodec should access this field using: - * av_frame_get_channel_layout(frame) - */ - int64_t channel_layout; - - /** - * sample rate of the audio frame - * - encoding: unused - * - decoding: read by user. - * Code outside libavcodec should access this field using: - * av_frame_get_channel_layout(frame) - */ - int sample_rate; - } AVFrame; /** |