[FFmpeg-devel] [PATCH] Remove unessesary assignment of CODEC_ID_BMP
mark cox
melbournemark+ffmpeg
Mon Jul 9 12:12:28 CEST 2007
On 09/07/07, mark cox <markcox at email.com> wrote:
>
>
>
> On 08/07/07, M?ns Rullg?rd <mans at mansr.com> wrote:
> >
> > "mark cox" <melbournemark+ffmpeg at gmail.com> writes:
> >
> > > This patch removes the assignment of CODEC_ID_BMP because, it is
> > already
> > > assigned.
> > > Regards,
> > > mark
> > >
> > > Index: libavcodec/bmp.c
> > > ===================================================================
> > > --- libavcodec/bmp.c (revision 9532)
> > > +++ libavcodec/bmp.c (working copy)
> > > @@ -111,7 +111,7 @@
> > > rgb[2] = bytestream_get_le32(&buf);
> > > }
> > >
> > > - avctx->codec_id = CODEC_ID_BMP;
> > > + assert(avctx->codec_id == CODEC_ID_BMP);
> > > avctx->width = width;
> > > avctx->height = height > 0? height: -height;
> >
> > Why the assert? We don't do that for most of the codecs.
>
>
> I thought no harm, and a bit of self-documentation.
>
Here is a simpler patch.
--
> > M?ns Rullg?rd
> > mans at mansr.com
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at mplayerhq.hu
> > http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
> >
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bmp.remove.codecid.diff
Type: text/x-patch
Size: 354 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070709/f05c9d30/attachment.bin>
More information about the ffmpeg-devel
mailing list