summaryrefslogtreecommitdiff
path: root/libavcodec/rawdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-08 14:28:28 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-08 14:32:19 +0100
commit86159703f5719f4ca2c56d20792600637d1296a2 (patch)
treebbc75aeaf71d8349b4ca0fa9fe7dc7904b7fe65b /libavcodec/rawdec.c
parentff6b34009d4571ae0a4d130c0f8d27706a4c4026 (diff)
downloadffmpeg-86159703f5719f4ca2c56d20792600637d1296a2.tar.gz
ff_find_pix_fmt: return NONE for the "not found" case.
Found-by: durandal_1707 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/rawdec.c')
-rw-r--r--libavcodec/rawdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index a4cb151197..36b6b66bca 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)