On Tue, Feb 23, 2016 at 2:53 PM, Luca Barbato <lu_z...@gentoo.org> wrote: > On 23/02/16 02:17, Vittorio Giovara wrote: >> 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: >> > > What happens if last_frame is non-null?
According to mpegutils.c it used only if lowdealy is true. However that might not be always the case so, I'll just set the current frame for both. -- Vittorio _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel