You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +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]; | ||||
|     memcpy(frame->data, buf->data, sizeof(frame->data)); | ||||
|  | ||||
|     if (avctx->pkt) frame->pkt_pts = avctx->pkt->pts; | ||||
|     else            frame->pkt_pts = AV_NOPTS_VALUE; | ||||
|     if (avctx->pkt) { | ||||
|         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; | ||||
|  | ||||
|     if (avctx->debug & FF_DEBUG_BUFFERS) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user