History

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.

James Almer committed 1 year ago

Commit e80f32f1 parent a8bae9b1 file · +2 −2Browse files

Unified · Split

libavcodec/cbs_apv.c+2−2
@@ -168,8 +168,8 @@ static int cbs_apv_split_fragment(CodedBitstreamContext *ctx, · 167 unmodified lines
168168 uint32_t signature;
169169 int err, trace;
170170
171− if (header) {
172− // Ignore extradata fragments.
171+ if (header || !frag->data_size) {
172+ // Ignore empty or extradata fragments.
173173 return 0;
174174 }
175175

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t