Commit efd6b80b authored by Reimar Döffinger's avatar Reimar Döffinger

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: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent 741aca79
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment