Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-20 18:23:55 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-25 15:56:03 +0300
commit843fe314ea30a3b7ccaa165031663292d14a9e02 (patch)
treef99f8e1c72321990d647a8d6c0dffb18db83925f /libavformat/nutdec.c
parenta7e54196cc94a71c44dd0bd4b91641740a7caf20 (diff)
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. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r--libavformat/nutdec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 24dedc4758..afa27b827c 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -1132,7 +1132,6 @@ static int decode_frame(NUTContext *nut, AVPacket *pkt, int frame_code)
}
sm_size = avio_tell(bc) - pkt->pos;
size -= sm_size;
- pkt->size -= sm_size;
}
ret = avio_read(bc, pkt->data + nut->header_len[header_idx], size);