X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh261enc.c;h=909bc23bb4bec6eb671c47f35c8a1c6a868a9603;hb=91a98cc4ead6d871053011dafb72458a4e75fa8b;hp=315762c10c0f20ea7d649dc8247cc6c3aebba6d5;hpb=a12063b118ad05409ff775ba30fab00265ad3031;p=ffmpeg diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c index 315762c10c0..909bc23bb4b 100644 --- a/libavcodec/h261enc.c +++ b/libavcodec/h261enc.c @@ -55,7 +55,7 @@ void ff_h261_encode_picture_header(MpegEncContext *s, int picture_number) H261Context *h = (H261Context *)s; int format, temp_ref; - avpriv_align_put_bits(&s->pb); + align_put_bits(&s->pb); /* Update the pointer to last GOB */ s->ptr_lastgob = put_bits_ptr(&s->pb); @@ -394,6 +394,7 @@ AVCodec ff_h261_encoder = { .init = ff_mpv_encode_init, .encode2 = ff_mpv_encode_picture, .close = ff_mpv_encode_end, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, .priv_class = &h261_class,