[FFmpeg-cvslog] ff_find_pix_fmt: return NONE for the "not found" case.

Michael Niedermayer git at videolan.org
Tue Jan 8 14:32:47 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan  8 14:28:28 2013 +0100| [86159703f5719f4ca2c56d20792600637d1296a2] | committer: Michael Niedermayer

ff_find_pix_fmt: return NONE for the "not found" case.

Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=86159703f5719f4ca2c56d20792600637d1296a2
---

 libavcodec/rawdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index a4cb151..36b6b66 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -87,7 +87,7 @@ enum AVPixelFormat ff_find_pix_fmt(const PixelFormatTag *tags, unsigned int four
             return tags->pix_fmt;
         tags++;
     }
-    return AV_PIX_FMT_YUV420P;
+    return AV_PIX_FMT_NONE;
 }
 
 static av_cold int raw_init_decoder(AVCodecContext *avctx)



More information about the ffmpeg-cvslog mailing list