avcodec/sanm: invalidate STOR data when subversion changes

since the STOR data is a different format.

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
This commit is contained in:
Manuel Lauss
2025-09-02 17:25:17 +02:00
parent b7e55ef8a1
commit dd875f56b7

View File

@@ -1795,8 +1795,10 @@ static int process_frame_obj(SANMVideoContext *ctx, GetByteContext *gb,
}
/* users of codecs>=37 are subversion 2, enforce that for STOR/FTCH */
if (fsc)
if (fsc && ctx->subversion < 2) {
ctx->subversion = 2;
ctx->stor_size = 0; /* invalidate existing data */
}
/* clear the main buffer on the first fob */
if (ctx->first_fob) {