libavcodec/dxv: Remove redundant seek

This seeks to the position the previous call to dxv_decompress_opcodes()
positioned us in case of success

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2019-09-24 12:39:25 +02:00
parent 7f0498ed46
commit c371e50b4f
1 changed files with 0 additions and 1 deletions

View File

@ -755,7 +755,6 @@ static int dxv_decompress_cocg(DXVContext *ctx, GetByteContext *gb,
skip0 = dxv_decompress_opcodes(gb, op_data0, op_size0); skip0 = dxv_decompress_opcodes(gb, op_data0, op_size0);
if (skip0 < 0) if (skip0 < 0)
return skip0; return skip0;
bytestream2_seek(gb, data_start + op_offset + skip0 - 12, SEEK_SET);
if (op_size1 > max_op_size1) if (op_size1 > max_op_size1)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
skip1 = dxv_decompress_opcodes(gb, op_data1, op_size1); skip1 = dxv_decompress_opcodes(gb, op_data1, op_size1);