History

avformat/nutdec: Don't shrink packet size manually

It is unnecessary because an av_shrink_packet() a few lines below will set the size; furthermore, it is actually harmful, because av_shrink_packet() does nothing in case the size already matches, so that the packet's padding is not correctly zeroed.

Andreas Rheinhardt committed 4 years ago

Commit 843fe311 parent a7e54191 file · +0 −1Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/nutdec.c+0−1
@@ -1132,7 +1132,6 @@ static int decode_frame(NUTContext *nut, AVPacket *pkt, int frame_code) · 1131 unmodified lines
11321132 }
11331133 sm_size = avio_tell(bc) - pkt->pos;
11341134 size -= sm_size;
1135− pkt->size -= sm_size;
11361135 }
11371136
11381137 ret = avio_read(bc, pkt->data + nut->header_len[header_idx], size);

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