You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
audeo_get_buffer: fix pkt_pos
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -349,8 +349,14 @@ static int audio_get_buffer(AVCodecContext *avctx, AVFrame *frame)
|
|||||||
frame->linesize[0] = buf->linesize[0];
|
frame->linesize[0] = buf->linesize[0];
|
||||||
memcpy(frame->data, buf->data, sizeof(frame->data));
|
memcpy(frame->data, buf->data, sizeof(frame->data));
|
||||||
|
|
||||||
if (avctx->pkt) frame->pkt_pts = avctx->pkt->pts;
|
if (avctx->pkt) {
|
||||||
else frame->pkt_pts = AV_NOPTS_VALUE;
|
frame->pkt_pts = avctx->pkt->pts;
|
||||||
|
frame->pkt_pos = avctx->pkt->pos;
|
||||||
|
} else {
|
||||||
|
frame->pkt_pts = AV_NOPTS_VALUE;
|
||||||
|
frame->pkt_pos = -1;
|
||||||
|
}
|
||||||
|
|
||||||
frame->reordered_opaque = avctx->reordered_opaque;
|
frame->reordered_opaque = avctx->reordered_opaque;
|
||||||
|
|
||||||
if (avctx->debug & FF_DEBUG_BUFFERS)
|
if (avctx->debug & FF_DEBUG_BUFFERS)
|
||||||
|
Reference in New Issue
Block a user