Browse Source

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>
tags/n0.10
Reimar Döffinger 14 years ago
parent
commit
efd6b80b40
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rawdec.c

+ 1
- 1
libavformat/rawdec.c View File

@@ -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…
Cancel
Save