Browse Source

avcodec/cfhd: Set dimensions unconditionally

Fixes Ticket5215

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 056a4ae771)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0.3
Michael Niedermayer 9 years ago
parent
commit
5bf11223dd
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/cfhd.c

+ 5
- 0
libavcodec/cfhd.c View File

@@ -425,6 +425,11 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
return ret;
}
}
ret = ff_set_dimensions(avctx, s->coded_width, s->coded_height);
if (ret < 0)
return ret;
frame.f->width =
frame.f->height = 0;

if ((ret = ff_thread_get_buffer(avctx, &frame, 0)) < 0)
return ret;


Loading…
Cancel
Save