#include "h263.h"
#include "internal.h"
#include "mpegutils.h"
+#include "packet_internal.h"
#include "svq1.h"
#include "svq1enc.h"
#include "svq1enc_cb.h"
s->m.first_slice_line = 0;
}
- ff_fix_long_p_mvs(&s->m);
+ ff_fix_long_p_mvs(&s->m, CANDIDATE_MB_TYPE_INTRA);
ff_fix_long_mvs(&s->m, NULL, 0, s->m.p_mv_table, s->m.f_code,
CANDIDATE_MB_TYPE_INTER, 0);
}
if (best != 2)
for (i = 5; i >= 0; i--)
- avpriv_copy_bits(&s->pb, reorder_buffer[best][i],
+ ff_copy_bits(&s->pb, reorder_buffer[best][i],
count[best][i]);
if (best == 0)
s->hdsp.put_pixels_tab[0][0](decoded, temp, stride, 16);
s->current_picture = av_frame_alloc();
s->last_picture = av_frame_alloc();
if (!s->current_picture || !s->last_picture) {
- svq1_encode_end(avctx);
return AVERROR(ENOMEM);
}
s->m.avctx = avctx;
if ((ret = ff_mpv_common_init(&s->m)) < 0) {
- svq1_encode_end(avctx);
return ret;
}
if (!s->m.me.temp || !s->m.me.scratchpad || !s->m.me.map ||
!s->m.me.score_map || !s->mb_type || !s->dummy) {
- svq1_encode_end(avctx);
return AVERROR(ENOMEM);
}
}
}
- // avpriv_align_put_bits(&s->pb);
+ // align_put_bits(&s->pb);
while (put_bits_count(&s->pb) & 31)
put_bits(&s->pb, 1, 0);
.init = svq1_encode_init,
.encode2 = svq1_encode_frame,
.close = svq1_encode_end,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV410P,
AV_PIX_FMT_NONE },
};