diff mbox

[FFmpeg-devel,1/2] libavcodec/dxv: Remove redundant seek

Message ID 20190924114745.30362-1-michael@niedermayer.cc
State Accepted
Commit c371e50b4f125361eb183ac3c226f4044ae64b08
Headers show

Commit Message

Michael Niedermayer Sept. 24, 2019, 11:47 a.m. UTC
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>
---
 libavcodec/dxv.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Michael Niedermayer Oct. 8, 2019, 12:54 p.m. UTC | #1
On Tue, Sep 24, 2019 at 01:47:44PM +0200, Michael Niedermayer wrote:
> 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>
> ---
>  libavcodec/dxv.c | 1 -
>  1 file changed, 1 deletion(-)

will apply patchset

[...]
diff mbox

Patch

diff --git a/libavcodec/dxv.c b/libavcodec/dxv.c
index 8d5e4b1c6c..3fb50e96d0 100644
--- a/libavcodec/dxv.c
+++ b/libavcodec/dxv.c
@@ -755,7 +755,6 @@  static int dxv_decompress_cocg(DXVContext *ctx, GetByteContext *gb,
     skip0 = dxv_decompress_opcodes(gb, op_data0, op_size0);
     if (skip0 < 0)
         return skip0;
-    bytestream2_seek(gb, data_start + op_offset + skip0 - 12, SEEK_SET);
     if (op_size1 > max_op_size1)
         return AVERROR_INVALIDDATA;
     skip1 = dxv_decompress_opcodes(gb, op_data1, op_size1);