mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
libavcodec: when decoding, copy replaygain side data to decoded frames
This commit is contained in:
parent
5a7e35dd23
commit
4a0f665143
3 changed files with 43 additions and 9 deletions
|
|
@ -150,8 +150,10 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
|
|||
|
||||
frame->pict_type = AV_PICTURE_TYPE_I;
|
||||
frame->key_frame = 1;
|
||||
frame->reordered_opaque = avctx->reordered_opaque;
|
||||
frame->pkt_pts = avctx->internal->pkt->pts;
|
||||
|
||||
res = ff_decode_frame_props(avctx, frame);
|
||||
if (res < 0)
|
||||
return res;
|
||||
|
||||
if (buf_size < context->frame_size - (avctx->pix_fmt == AV_PIX_FMT_PAL8 ?
|
||||
AVPALETTE_SIZE : 0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue