Commit db44eff1 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'f51e3a19'

* commit 'f51e3a19':
  webp: do not call av_frame_free() on the user-provided frame
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 711c664a f51e3a19
......@@ -1129,10 +1129,8 @@ static int vp8_lossless_decode_frame(AVCodecContext *avctx, AVFrame *p,
if (is_alpha_chunk)
s->image[IMAGE_ROLE_ARGB].is_alpha_primary = 1;
ret = decode_entropy_coded_image(s, IMAGE_ROLE_ARGB, w, h);
if (ret < 0) {
av_frame_free(&p);
if (ret < 0)
goto free_and_return;
}
/* apply transformations */
for (i = s->nb_transforms - 1; i >= 0; i--) {
......@@ -1150,11 +1148,9 @@ static int vp8_lossless_decode_frame(AVCodecContext *avctx, AVFrame *p,
ret = apply_color_indexing_transform(s);
break;
}
if (ret < 0) {
av_frame_free(&p);
if (ret < 0)
goto free_and_return;
}
}
*got_frame = 1;
p->pict_type = AV_PICTURE_TYPE_I;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment