Mercurial > libavcodec.hg
comparison flashsvenc.c @ 10397:d7ed9dcc78e3 libavcodec
Remove unnecessary calls to avcodec_check_dimensions, the check is already
done at a higher level.
author | reimar |
---|---|
date | Tue, 13 Oct 2009 20:13:28 +0000 |
parents | 38cfe222e1a4 |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10396:2bb3882075b6 | 10397:d7ed9dcc78e3 |
---|---|
106 if ((avctx->width > 4095) || (avctx->height > 4095)) { | 106 if ((avctx->width > 4095) || (avctx->height > 4095)) { |
107 av_log(avctx, AV_LOG_ERROR, "Input dimensions too large, input must be max 4096x4096 !\n"); | 107 av_log(avctx, AV_LOG_ERROR, "Input dimensions too large, input must be max 4096x4096 !\n"); |
108 return -1; | 108 return -1; |
109 } | 109 } |
110 | 110 |
111 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { | |
112 return -1; | |
113 } | |
114 | |
115 // Needed if zlib unused or init aborted before deflateInit | 111 // Needed if zlib unused or init aborted before deflateInit |
116 memset(&(s->zstream), 0, sizeof(z_stream)); | 112 memset(&(s->zstream), 0, sizeof(z_stream)); |
117 | 113 |
118 s->last_key_frame=0; | 114 s->last_key_frame=0; |
119 | 115 |