You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
rawdec: use av_shrink_packet.
This fixes reads of uninitialized data by the parser when running FATE sample h264-conformance/SL1_SVA_B.264. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
@@ -122,7 +122,7 @@ int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
av_free_packet(pkt);
|
||||
return ret;
|
||||
}
|
||||
pkt->size = ret;
|
||||
av_shrink_packet(pkt, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user