From 5bac83dae84ae7693acb5a4d09b555729771f11c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 15 Oct 2012 14:26:32 +0200 Subject: [PATCH] shorten: fix U8 to be planar too Signed-off-by: Michael Niedermayer --- libavcodec/shorten.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index c36bb9ee2b..45bc635cd0 100644 --- a/libavcodec/shorten.c +++ b/libavcodec/shorten.c @@ -190,7 +190,7 @@ static int init_offset(ShortenContext *s) switch (s->internal_ftype) { case TYPE_U8: - s->avctx->sample_fmt = AV_SAMPLE_FMT_U8; + s->avctx->sample_fmt = AV_SAMPLE_FMT_U8P; mean = 0x80; break; case TYPE_S16HL: