[FFmpeg-devel] [PATCH 1/4] escape130: Check dimensions to be a multiple of the block size.

Michael Niedermayer michaelni at gmx.at
Thu Dec 8 18:31:32 CET 2011


On Thu, Dec 08, 2011 at 01:34:33PM +0000, Paul B Mahol wrote:
> On 12/8/11, Michael Niedermayer <michaelni at gmx.at> wrote:
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  libavcodec/escape130.c |    5 +++++
> >  1 files changed, 5 insertions(+), 0 deletions(-)
> >
> > diff --git a/libavcodec/escape130.c b/libavcodec/escape130.c
> > index 322ec8f..57327b1 100644
> > --- a/libavcodec/escape130.c
> > +++ b/libavcodec/escape130.c
> > @@ -43,6 +43,11 @@ static av_cold int escape130_decode_init(AVCodecContext
> > *avctx)
> >      Escape130Context *s = avctx->priv_data;
> >      avctx->pix_fmt = PIX_FMT_YUV420P;
> >
> > +    if((avctx->width&1) || (avctx->height&1)){
> > +        av_log(avctx, AV_LOG_ERROR, "Dimensions are not a multiple of the
> > block size\n");
> > +        return -1;
> Irrelevant: if it make sense, could -1 be changed to something better?
> Yes, bunch of files use -1 but I'm just curious.

fixed, applied, thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111208/68f8efb0/attachment.asc>


More information about the ffmpeg-devel mailing list