summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-15 14:26:32 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-15 15:09:46 +0200
commit5bac83dae84ae7693acb5a4d09b555729771f11c (patch)
tree0cc5fbf889a99cbbecf6fb36aaee8c4d860dcff5
parent916e40b5b42ff7409b61a392cb7807c734b32e8f (diff)
shorten: fix U8 to be planar too
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/shorten.c2
1 files changed, 1 insertions, 1 deletions
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: