Commit 51029992 authored by James Almer's avatar James Almer

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

This reverts commit 976dae8b.

An alternative approach to reduce frame copying will follow.
parent c14a12ac
...@@ -56,13 +56,11 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -56,13 +56,11 @@ static int decode_frame(AVCodecContext *avctx,
} }
bytestream2_init(&gb, avpkt->data, avpkt->size); 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) if ((ret = ff_reget_buffer(avctx, s->prev_frame, 0)) < 0)
return ret; return ret;
blocks = bytestream2_get_le16(&gb);
if (blocks > 5) { if (blocks > 5) {
GetByteContext bgb; GetByteContext bgb;
int x = 0, size; int x = 0, size;
......
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