1
0
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:
James Almer
2025-04-29 16:57:34 -03:00
parent a8bae9b18d
commit e80f32f3bd

View File

@ -168,8 +168,8 @@ static int cbs_apv_split_fragment(CodedBitstreamContext *ctx,
uint32_t signature; uint32_t signature;
int err, trace; int err, trace;
if (header) { if (header || !frag->data_size) {
// Ignore extradata fragments. // Ignore empty or extradata fragments.
return 0; return 0;
} }