[FFmpeg-devel] [PATCH] Revert "lavc/utils: Do not require dimensions for PNG."

Michael Niedermayer michaelni at gmx.at
Mon Jul 14 01:57:52 CEST 2014


On Sun, Jul 13, 2014 at 07:32:56PM +0100, Derek Buitenhuis wrote:
> mplayer-specifc hacks should not be in our codebase. mplayer should fix
> it's own code. It is not our responsibility to work around their broken
> code.
> 
> This reverts commit e8e575633faf19711910cf9caf59f7db300a9ccd.
> 
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> ---
>  libavcodec/utils.c |    4 +---
>  1 files changed, 1 insertions(+), 3 deletions(-)
> 
> diff --git a/libavcodec/utils.c b/libavcodec/utils.c
> index 9fa8e16..6a8992a 100644
> --- a/libavcodec/utils.c
> +++ b/libavcodec/utils.c
> @@ -1533,9 +1533,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
>          } else if (avctx->channel_layout) {
>              avctx->channels = av_get_channel_layout_nb_channels(avctx->channel_layout);
>          }
> -        if(avctx->codec_type == AVMEDIA_TYPE_VIDEO &&
> -           avctx->codec_id != AV_CODEC_ID_PNG // For mplayer
> -        ) {
> +        if(avctx->codec_type == AVMEDIA_TYPE_VIDEO) {

this should be under a LIBAVCODEC_VERSION_MAJOR check otherwise
existing binary mplayer packages would break if libavodec is updated

that is unless iam missing something

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

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140714/28ae4598/attachment.asc>


More information about the ffmpeg-devel mailing list