This is assuming that intrax8 has no support for interlacing
(hence PICT_FRAME is set and last_frame is NULL).
---
 libavcodec/intrax8.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c
index b3b1331..44cf141 100644
--- a/libavcodec/intrax8.c
+++ b/libavcodec/intrax8.c
@@ -30,6 +30,7 @@
 #include "intrax8huf.h"
 #include "intrax8.h"
 #include "intrax8dsp.h"
+#include "mpegutils.h"
 
 #define MAX_TABLE_DEPTH(table_bits, max_bits) \
     ((max_bits + table_bits - 1) / table_bits)
@@ -836,7 +837,9 @@ int ff_intrax8_decode_picture(IntraX8Context *const w, 
Picture *pict,
             w->dest[0] += 8;
         }
         if (w->mb_y & 1)
-            ff_mpeg_draw_horiz_band(s, (w->mb_y - 1) * 8, 16);
+            ff_draw_horiz_band(w->avctx, w->frame, NULL,
+                               (w->mb_y - 1) * 8, 16,
+                               PICT_FRAME, 0, lowdelay);
     }
 
 error:
-- 
2.7.0

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to