lavc: add a sample_rate field to AVFrame.

The field is filled with the codec context information.
This commit is contained in:
Nicolas George
2012-04-28 14:07:50 +02:00
parent 4b0521eca9
commit 128dda7016
3 changed files with 12 additions and 0 deletions

View File

@@ -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;