mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/dnxhd_parser: Optimize insufficient buf size case
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
1707dbdf49
commit
827faa18cf
@ -88,6 +88,10 @@ static int dnxhd_find_frame_end(DNXHDParserContext *dctx,
|
||||
return remaining;
|
||||
} else {
|
||||
dctx->remaining -= buf_size;
|
||||
// Update variables for correctness, they are currently not used beyond here
|
||||
state = -1;
|
||||
dctx->cur_byte += buf_size - i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user