diff --git a/libavcodec/dxv.c b/libavcodec/dxv.c index 7c0fc4567a..ed6ed3bb35 100644 --- a/libavcodec/dxv.c +++ b/libavcodec/dxv.c @@ -781,7 +781,7 @@ static int dxv_decompress_cocg(DXVContext *ctx, GetByteContext *gb, return ret; } - bytestream2_seek(gb, data_start + op_offset + skip0 + skip1 - 12, SEEK_SET); + bytestream2_seek(gb, data_start - 12 + op_offset + skip0 + skip1, SEEK_SET); return 0; }