mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-01-26 22:34:49 +00: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:
parent
741aca7936
commit
efd6b80b40
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user