hevc: make avcodec_decode_video2() fail if get_format() fails
[ffmpeg.git] / libavcodec / hevc.c
index 63c5688..11eedc5 100644 (file)
@@ -2997,7 +2997,6 @@ static int decode_nal_units(HEVCContext *s, const uint8_t *buf, int length)
 
     /* parse the NAL units */
     for (i = 0; i < s->nb_nals; i++) {
-        int ret;
         s->skipped_bytes = s->skipped_bytes_nal[i];
         s->skipped_bytes_pos = s->skipped_bytes_pos_nal[i];