summaryrefslogtreecommitdiff
path: root/libavformat/jvdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-03 05:24:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-03 05:26:15 +0200
commit9d0c71e5e34dec2c6246bf47da8d9674c92f85c1 (patch)
treed1cd3dcbeef762dc248a3f414214ca13715e32af /libavformat/jvdec.c
parent699083edce2bf52afc8ebb03dea259c8e26c750b (diff)
jvdemux: correct size for truncated packets
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/jvdec.c')
-rw-r--r--libavformat/jvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c
index 3977594f8b..504be089c7 100644
--- a/libavformat/jvdec.c
+++ b/libavformat/jvdec.c
@@ -164,7 +164,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
AV_WL32(pkt->data, jvf->video_size);
pkt->data[4] = jvf->video_type;
- if (avio_read(pb, pkt->data + JV_PREAMBLE_SIZE, size) < 0)
+ if ((size = avio_read(pb, pkt->data + JV_PREAMBLE_SIZE, size)) < 0)
return AVERROR(EIO);
pkt->size = size + JV_PREAMBLE_SIZE;