avcodec/av1dec: reset the fragment on extradata reading failure

Signed-off-by: James Almer <jamrial@gmail.com>
pull/389/head
James Almer 1 year ago
parent 8c6b931f4c
commit 4da14c302f
  1. 2
      libavcodec/av1dec.c

@ -850,7 +850,7 @@ static av_cold int av1_decode_init(AVCodecContext *avctx)
avctx);
if (ret < 0) {
av_log(avctx, AV_LOG_WARNING, "Failed to read extradata.\n");
return ret;
goto end;
}
seq = ((CodedBitstreamAV1Context *)(s->cbc->priv_data))->sequence_header;

Loading…
Cancel
Save