From a5117a2444f3e636ff824ea467bc828d482c68fc Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 7 May 2012 13:55:03 +0200 Subject: lavc: pad last audio frame with silence when needed. --- libavcodec/internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavcodec/internal.h') diff --git a/libavcodec/internal.h b/libavcodec/internal.h index bedb2ed85d..57d551d850 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -70,6 +70,12 @@ typedef struct AVCodecInternal { */ int sample_count; #endif + + /** + * An audio frame with less than required samples has been submitted and + * padded with silence. Reject all subsequent frames. + */ + int last_audio_frame; } AVCodecInternal; struct AVCodecDefault { -- cgit v1.2.3