summaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 3c1583d..4bde09a 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -140,6 +140,19 @@ typedef struct AVCodecInternal {
* hwaccel-specific private data
*/
void *hwaccel_priv_data;
+
+ /**
+ * checks API usage: after codec draining, flush is required to resume operation
+ */
+ int draining;
+
+ /**
+ * buffers for using new encode/decode API through legacy API
+ */
+ AVPacket *buffer_pkt;
+ int buffer_pkt_valid; // encoding: packet without data can be valid
+ AVFrame *buffer_frame;
+ int draining_done;
} AVCodecInternal;
struct AVCodecDefault {
OpenPOWER on IntegriCloud