summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-03-08 11:26:32 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-20 00:20:13 +0200
commitdd846bc4a9163f875cc2c4e99325c1a7b4ab8e7d (patch)
tree454f000005c2df2d1c1867239ea50534678b2583 /libavcodec/mpegvideo.h
parent9c489a0f3a954d8b63d0e8dc2a387ff8f2a8aa3a (diff)
lavc: deprecate AV_CODEC_(FLAG|CAP)_TRUNCATED
It is supported only by a few decoders (h263, h263p, mpeg(1|2|)video and mpeg4) and is entirely redundant with parsers. Furthermore, using it leads to missing frames, as flushing the decoder at the end does not work properly. Co-authored-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r--libavcodec/mpegvideo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 9f8d80df3d..8dfa904577 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -347,7 +347,9 @@ typedef struct MpegEncContext {
int mb_num_left; ///< number of MBs left in this video packet (for partitioned Slices only)
int next_p_frame_damaged; ///< set if the next p frame is damaged, to avoid showing trashed B-frames
+#if FF_API_FLAG_TRUNCATED
ParseContext parse_context;
+#endif
/* H.263 specific */
int gob_index;