lavc: add a sample_rate field to AVFrame.
The field is filled with the codec context information.
This commit is contained in:
@@ -1547,6 +1547,8 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
|
||||
frame->format = avctx->sample_fmt;
|
||||
if (!frame->channel_layout)
|
||||
frame->channel_layout = avctx->channel_layout;
|
||||
if (!frame->sample_rate)
|
||||
frame->sample_rate = avctx->sample_rate;
|
||||
}
|
||||
|
||||
avctx->pkt = NULL;
|
||||
|
Reference in New Issue
Block a user