aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2016-06-29 16:13:36 +0200
committerClément Bœsch <clement@stupeflix.com>2016-06-29 16:16:26 +0200
commita2901472fe187c346412c0a2a4b6d988f7f076c5 (patch)
treef0fa22c65e97b7a43d41337d3b02b4927940ac4e /libavcodec
parentcdecb39fca81967ff9e021c776b3212b1870188e (diff)
downloadffmpeg-a2901472fe187c346412c0a2a4b6d988f7f076c5.tar.gz
lavc/h264_slice: properly forward positive "error" code
Fixes ./ffmpeg -skip_frame nokey -i h264/h264_intra_first-small.ts Regression since c54e2740e1f4a8fb7fa4e521755bf4158c4cda51
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264_slice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 522a36cb89..0c36c8f925 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1702,7 +1702,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
int i, j, ret = 0;
ret = h264_slice_header_parse(h, sl);
- if (ret < 0)
+ if (ret) // can not be ret<0 because of SLICE_SKIPED, SLICE_SINGLETHREAD, ...
return ret;
if (sl->slice_type_nos == AV_PICTURE_TYPE_B && !sl->direct_spatial_mv_pred)