You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/sanm: ignore unknown codecs in FOBJs
Don't error out, just ignore unknown codec numbers and pretend decode succeeded. This is useful for older LucasArts titles which stack a lot of different FOBJs with different codecs into a single frame. Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
f641c6846a
commit
114e9864e1
@ -1274,7 +1274,8 @@ static int process_frame_obj(SANMVideoContext *ctx)
|
||||
return old_codec48(ctx, w, h);
|
||||
default:
|
||||
avpriv_request_sample(ctx->avctx, "Subcodec %d", codec);
|
||||
return AVERROR_PATCHWELCOME;
|
||||
ctx->frame->flags |= AV_FRAME_FLAG_CORRUPT;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user