diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 20:00:28 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 20:08:30 +0200 |
commit | 994a582a02aca1f11675300af10c9fd150958d6a (patch) | |
tree | 5b0b6820dbcb28af863542a13591b316e77003f7 | |
parent | ea8e089ff7cd22003be4072ddba18834ec1cceaf (diff) | |
download | ffmpeg-streaming-994a582a02aca1f11675300af10c9fd150958d6a.zip ffmpeg-streaming-994a582a02aca1f11675300af10c9fd150958d6a.tar.gz |
avcodec/dvbsubdec: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/dvbsubdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 4f408fe..9d74b1a 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -1394,7 +1394,7 @@ static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf, } if (sub->num_rects > 0){ - sub->rects = av_mallocz(sizeof(*sub->rects) * sub->num_rects); + sub->rects = av_mallocz_array(sizeof(*sub->rects), sub->num_rects); for(i=0; i<sub->num_rects; i++) sub->rects[i] = av_mallocz(sizeof(*sub->rects[i])); |