lavc: add a channel_layout field to AVFrame.
The field is filled with the codec context information. FIXME need a minor version bump.
This commit is contained in:
parent
82c71913e4
commit
4b0521eca9
3 changed files with 13 additions and 0 deletions
|
@ -1545,6 +1545,8 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
|
|||
frame->pkt_dts = avpkt->dts;
|
||||
if (frame->format == AV_SAMPLE_FMT_NONE)
|
||||
frame->format = avctx->sample_fmt;
|
||||
if (!frame->channel_layout)
|
||||
frame->channel_layout = avctx->channel_layout;
|
||||
}
|
||||
|
||||
avctx->pkt = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue