aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-14 21:49:52 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-14 21:50:21 +0100
commite136579ca358093caa6b0a4941717ae7ef1f90b2 (patch)
treef0223596844f07b21241e93f2b66f64d8562e672 /libavcodec
parentefec857c9f70113bdbcc18e03a5bcadcdca9f9a1 (diff)
parent3fbad00714698f59c6326edfcc63db87f525e7c0 (diff)
downloadffmpeg-e136579ca358093caa6b0a4941717ae7ef1f90b2.tar.gz
Merge commit '3fbad00714698f59c6326edfcc63db87f525e7c0'
* commit '3fbad00714698f59c6326edfcc63db87f525e7c0': utvideoenc: Enable support for multiple slices and use them Conflicts: libavcodec/utvideoenc.c tests/fate/utvideo.mak See: efec857c9f70113bdbcc18e03a5bcadcdca9f9a1 Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/utvideoenc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c
index 494d2e1bec..74b28f9905 100644
--- a/libavcodec/utvideoenc.c
+++ b/libavcodec/utvideoenc.c
@@ -207,11 +207,10 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx)
if (!avctx->slices) {
c->slices = subsampled_height / 120;
- if (!c->slices) {
+ if (!c->slices)
c->slices = 1;
- } else if (c->slices > 256) {
+ else if (c->slices > 256)
c->slices = 256;
- }
} else {
c->slices = avctx->slices;
}