You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/cbs_apv: don't return an error when reading empty buffers
The output will be a fragment with zero units, which is a lot more user friendly than making them think something went wrong, as it already happens with cbs_av1. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -168,8 +168,8 @@ static int cbs_apv_split_fragment(CodedBitstreamContext *ctx,
|
||||
uint32_t signature;
|
||||
int err, trace;
|
||||
|
||||
if (header) {
|
||||
// Ignore extradata fragments.
|
||||
if (header || !frag->data_size) {
|
||||
// Ignore empty or extradata fragments.
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user