Commit 85f947ae authored by Anton Khirnov's avatar Anton Khirnov

lavc: remove a pointless check in decode_audio4()

av_frame_unref() works fine on unallocated frames.
parent d4f0f2d1
......@@ -1478,7 +1478,7 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
frame->extended_buf = NULL;
frame->nb_extended_buf = 0;
}
} else if (frame->data[0])
} else
av_frame_unref(frame);
}
......
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