summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.h
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-11-28 00:31:52 +0100
committerLuca Barbato <lu_zero@gentoo.org>2011-12-13 16:20:58 +0100
commit63ccd466873b0863d466f5846a305eb908fe3b80 (patch)
tree621431453b05ed6dab391e13ec28ad8ca4e33e33 /libavcodec/mpegvideo.h
parent5bf2ac2b37ae17df7f2bd541801bec8c049b8d2c (diff)
lavc: introduce ER_MB_END and ER_MB_ERROR
Simplify a little error resilience calls Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r--libavcodec/mpegvideo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 704535d073..38bbd123ee 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -481,6 +481,9 @@ typedef struct MpegEncContext {
#define ER_DC_END 32
#define ER_MV_END 64
+#define ER_MB_ERROR (ER_AC_ERROR|ER_DC_ERROR|ER_MV_ERROR)
+#define ER_MB_END (ER_AC_END|ER_DC_END|ER_MV_END)
+
int resync_mb_x; ///< x position of last resync marker
int resync_mb_y; ///< y position of last resync marker
GetBitContext last_resync_gb; ///< used to search for the next resync marker