Mercurial > libavcodec.hg
comparison libdiracdec.c @ 12462:ffb3668ff7af libavcodec
Use new imgutils.h API names, fix deprecation warnings.
author | stefano |
---|---|
date | Tue, 07 Sep 2010 19:15:29 +0000 |
parents | 7e9b2d528e59 |
children |
comparison
equal
deleted
inserted
replaced
12461:25174028da0a | 12462:ffb3668ff7af |
---|---|
104 case STATE_SEQUENCE: | 104 case STATE_SEQUENCE: |
105 { | 105 { |
106 /* tell FFmpeg about sequence details */ | 106 /* tell FFmpeg about sequence details */ |
107 dirac_sourceparams_t *src_params = &p_dirac_params->p_decoder->src_params; | 107 dirac_sourceparams_t *src_params = &p_dirac_params->p_decoder->src_params; |
108 | 108 |
109 if (av_check_image_size(src_params->width, src_params->height, | 109 if (av_image_check_size(src_params->width, src_params->height, |
110 0, avccontext) < 0) { | 110 0, avccontext) < 0) { |
111 av_log(avccontext, AV_LOG_ERROR, "Invalid dimensions (%dx%d)\n", | 111 av_log(avccontext, AV_LOG_ERROR, "Invalid dimensions (%dx%d)\n", |
112 src_params->width, src_params->height); | 112 src_params->width, src_params->height); |
113 avccontext->height = avccontext->width = 0; | 113 avccontext->height = avccontext->width = 0; |
114 return -1; | 114 return -1; |