Revert "avcodec/wcmv: Avoid copying frames if they are unchanged"

This reverts commit 976dae8b32.

An alternative approach to reduce frame copying will follow.
This commit is contained in:
James Almer
2019-09-04 10:07:12 -03:00
parent c14a12ac84
commit 5102999223
+1 -3
View File
@@ -56,13 +56,11 @@ static int decode_frame(AVCodecContext *avctx,
}
bytestream2_init(&gb, avpkt->data, avpkt->size);
blocks = bytestream2_get_le16(&gb);
if (!blocks)
return avpkt->size;
if ((ret = ff_reget_buffer(avctx, s->prev_frame, 0)) < 0)
return ret;
blocks = bytestream2_get_le16(&gb);
if (blocks > 5) {
GetByteContext bgb;
int x = 0, size;