aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-05-07 13:55:03 +0200
committerAnton Khirnov <anton@khirnov.net>2012-05-09 17:46:54 +0200
commita5117a2444f3e636ff824ea467bc828d482c68fc (patch)
tree5987200061f5c74ce5b35af47cbcf81a88f8583f /libavcodec/internal.h
parent6d7f61770094cc80ca2d93c4784c0091411d8242 (diff)
downloadffmpeg-a5117a2444f3e636ff824ea467bc828d482c68fc.tar.gz
lavc: pad last audio frame with silence when needed.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h6
1 files changed, 6 insertions, 0 deletions
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 {