diff options
author | Mike Melanson <mike@multimedia.cx> | 2005-04-19 05:16:45 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2005-04-19 05:16:45 +0000 |
commit | 97c50cb77949856573d7f5f5a3c28cb73e61e011 (patch) | |
tree | 2dbabcbb9009b09d66789498ce1d2451a4b39bc0 /src/libffmpeg/libavcodec/xan.c | |
parent | 19e7199dad84489aa49e3b2dd5c0e45657ec0fb8 (diff) | |
download | xine-lib-97c50cb77949856573d7f5f5a3c28cb73e61e011.tar.gz xine-lib-97c50cb77949856573d7f5f5a3c28cb73e61e011.tar.bz2 |
sync to FFmpeg build 4752
CVS patchset: 7463
CVS date: 2005/04/19 05:16:45
Diffstat (limited to 'src/libffmpeg/libavcodec/xan.c')
-rw-r--r-- | src/libffmpeg/libavcodec/xan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libffmpeg/libavcodec/xan.c b/src/libffmpeg/libavcodec/xan.c index f98a06bca..377a71ef2 100644 --- a/src/libffmpeg/libavcodec/xan.c +++ b/src/libffmpeg/libavcodec/xan.c @@ -132,6 +132,9 @@ static int xan_decode_init(AVCodecContext *avctx) v_b_table[i] = V_B * i; } + if(avcodec_check_dimensions(avctx, avctx->width, avctx->height)) + return -1; + s->buffer1 = av_malloc(avctx->width * avctx->height); s->buffer2 = av_malloc(avctx->width * avctx->height); if (!s->buffer1 || !s->buffer2) |