aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-27 12:52:53 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-03-27 12:52:53 +0200
commitdcd013a535bccbb163b740b72bbedde67dc8e633 (patch)
tree45874678fe5d7977f44ac8d54349cf21fc10901f
parent6999f8bcf56bb167124bf85bdaa89090acdd5d9c (diff)
downloadffmpeg-dcd013a535bccbb163b740b72bbedde67dc8e633.tar.gz
oma: dont over-read buffer
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/omadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/omadec.c b/libavformat/omadec.c
index a62b560504..4777c13048 100644
--- a/libavformat/omadec.c
+++ b/libavformat/omadec.c
@@ -377,7 +377,7 @@ static int oma_read_packet(AVFormatContext *s, AVPacket *pkt)
if (oc->encrypted) {
/* previous unencrypted block saved in IV for the next packet (CBC mode) */
- av_des_crypt(&oc->av_des, pkt->data, pkt->data, (packet_size >> 3), oc->iv, 1);
+ av_des_crypt(&oc->av_des, pkt->data, pkt->data, (ret >> 3), oc->iv, 1);
}
return ret;