1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-14 22:22:59 +02:00

lavc/ffv1dec: drop a pointless variable in decode_slice()

fsdst is by construction always equal to fs, there is even an
av_assert1() checking that. Just use fs directly.
This commit is contained in:
Anton Khirnov 2024-07-03 14:40:23 +02:00
parent 4da146ba83
commit 3a5c814b19

View File

@ -267,16 +267,14 @@ static int decode_slice(AVCodecContext *c, void *arg)
if(f->fsrc && !(p->flags & AV_FRAME_FLAG_KEY)) {
FFV1Context *fssrc = f->fsrc->slice_context[si];
FFV1Context *fsdst = f->slice_context[si];
av_assert1(fsdst->plane_count == fssrc->plane_count);
av_assert1(fsdst == fs);
av_assert1(fs->plane_count == fssrc->plane_count);
if (!(p->flags & AV_FRAME_FLAG_KEY))
fsdst->slice_damaged |= fssrc->slice_damaged;
fs->slice_damaged |= fssrc->slice_damaged;
for (int i = 0; i < f->plane_count; i++) {
PlaneContext *psrc = &fssrc->plane[i];
PlaneContext *pdst = &fsdst->plane[i];
PlaneContext *pdst = &fs->plane[i];
av_free(pdst->state);
av_free(pdst->vlc_state);