# Pastebin hlWb8fet if (tag == 4 && data == 0x1a4a && s->coded_width && s->coded_height && avctx->pix_fmt != AV_PIX_FMT_NONE) { printf("\n hdr %i %i %i %i \n", s->a_width, s->coded_width, s->a_height, s->coded_height); if (s->a_width != s->coded_width || s->a_height != s->coded_height) { free_buffers(avctx); if ((ret = alloc_buffers(avctx)) < 0) { free_buffers(avctx); return ret; } } printf("\n hdr2 %i %i %i %i \n", s->a_width, s->coded_width, s->a_height, s->coded_height); if ((ret = ff_thread_get_buffer(avctx, &frame, 0)) < 0) return ret; s->coded_width = 0; s->coded_height = 0; got_buffer = 1; }