]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ffv1.c
h264: K&R formatting cosmetics
[ffmpeg] / libavcodec / ffv1.c
index a31f2786ee6ca07042aff02636745f38a6466fea..d1a6a83b1350794028e054ffb47b5071f9110784 100644 (file)
@@ -141,10 +141,6 @@ av_cold int ffv1_common_init(AVCodecContext *avctx)
     if (!avctx->width || !avctx->height)
         return AVERROR_INVALIDDATA;
 
-    avcodec_get_frame_defaults(&s->picture);
-
-    ff_dsputil_init(&s->dsp, avctx);
-
     s->width  = avctx->width;
     s->height = avctx->height;
 
@@ -271,8 +267,6 @@ av_cold int ffv1_close(AVCodecContext *avctx)
     FFV1Context *s = avctx->priv_data;
     int i, j;
 
-    av_frame_unref(&s->last_picture);
-
     for (j = 0; j < s->slice_count; j++) {
         FFV1Context *fs = s->slice_context[j];
         for (i = 0; i < s->plane_count; i++) {