[FFmpeg-cvslog] avcodec/ffv1enc: Fix assertion failure with non zero bits per sample
Michael Niedermayer
git at videolan.org
Sat Aug 13 16:30:05 EEST 2016
ffmpeg | branch: release/3.0 | Michael Niedermayer <michael at niedermayer.cc> | Sat Aug 6 01:53:30 2016 +0200| [e7c00a2814238d199e2ae83eb98f97f4fd8fce7a] | committer: Michael Niedermayer
avcodec/ffv1enc: Fix assertion failure with non zero bits per sample
Fixes Ticket5736
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit c1bfeda5a34631787e07702f7a3569a41751caeb)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e7c00a2814238d199e2ae83eb98f97f4fd8fce7a
---
libavcodec/ffv1enc.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index 9ee9921..42e59a1 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -780,14 +780,12 @@ FF_ENABLE_DEPRECATION_WARNINGS
s->colorspace = 1;
s->transparency = 1;
s->chroma_planes = 1;
- if (!avctx->bits_per_raw_sample)
- s->bits_per_raw_sample = 8;
+ s->bits_per_raw_sample = 8;
break;
case AV_PIX_FMT_0RGB32:
s->colorspace = 1;
s->chroma_planes = 1;
- if (!avctx->bits_per_raw_sample)
- s->bits_per_raw_sample = 8;
+ s->bits_per_raw_sample = 8;
break;
case AV_PIX_FMT_GBRP9:
if (!avctx->bits_per_raw_sample)
More information about the ffmpeg-cvslog
mailing list