X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fffmpeg%2Flibavfilter%2Fvsrc_cellauto.c;h=5e2df2df0d481954a7e39147c9b7eaffb8c64f42;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=95eabc14fef539c3fbc9a2049037128830872e7c;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/ffmpeg/libavfilter/vsrc_cellauto.c b/src/third_party/ffmpeg/libavfilter/vsrc_cellauto.c index 95eabc1..5e2df2d 100644 --- a/src/third_party/ffmpeg/libavfilter/vsrc_cellauto.c +++ b/src/third_party/ffmpeg/libavfilter/vsrc_cellauto.c @@ -122,7 +122,7 @@ static int init_pattern_from_string(AVFilterContext *ctx) cellauto->h = (double)cellauto->w * M_PHI; } - cellauto->buf = av_mallocz(sizeof(uint8_t) * cellauto->w * cellauto->h); + cellauto->buf = av_mallocz_array(sizeof(uint8_t) * cellauto->w, cellauto->h); if (!cellauto->buf) return AVERROR(ENOMEM); @@ -182,7 +182,7 @@ static av_cold int init(AVFilterContext *ctx) /* fill the first row randomly */ int i; - cellauto->buf = av_mallocz(sizeof(uint8_t) * cellauto->w * cellauto->h); + cellauto->buf = av_mallocz_array(sizeof(uint8_t) * cellauto->w, cellauto->h); if (!cellauto->buf) return AVERROR(ENOMEM); if (cellauto->random_seed == -1)