summaryrefslogtreecommitdiff
path: root/libavcodec/ra144.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-02-28 01:02:28 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-03-04 01:14:53 -0500
commitb0350c1c30908dbe7901c4eb07663bb58e575902 (patch)
treeefd467172e0a0c4355b6f47536113c72120dbe7b /libavcodec/ra144.h
parent29e2c8531096a5fb67079551564b4ab3f9acd8a6 (diff)
ra144enc: fix end-of-stream handling
Use CODEC_CAP_DELAY and CODEC_CAP_SMALL_LAST_FRAME to properly pad and flush the encoder at the end of encoding. This is needed in order to have all input samples decoded.
Diffstat (limited to 'libavcodec/ra144.h')
-rw-r--r--libavcodec/ra144.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ra144.h b/libavcodec/ra144.h
index f6475d45ff..189c73a716 100644
--- a/libavcodec/ra144.h
+++ b/libavcodec/ra144.h
@@ -36,6 +36,7 @@ typedef struct {
AVCodecContext *avctx;
AVFrame frame;
LPCContext lpc_ctx;
+ int last_frame;
unsigned int old_energy; ///< previous frame energy