summaryrefslogtreecommitdiff
path: root/libavcodec/libx264.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-20 18:08:36 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-21 08:35:05 +0100
commit155dcfe2e20b5a934310dd7561383b2c978c382d (patch)
tree32917456f05167bd93c27e69a6f94e7f1cb68175 /libavcodec/libx264.c
parent50bfd5e96e98e86df08cc7ffdf726f6ed6851ee7 (diff)
downloadffmpeg-155dcfe2e20b5a934310dd7561383b2c978c382d.tar.gz
avcodec/libx264: Don't unnecessarily add in-band extradata
The check here is meant to check for whether avcintra-class option (default value -1) has been set; yet it checks for the x264_param_t value where 0 is the default value (treated as "no avcintra-mode" by x264). This meant that in-band extradata has been added unnecessarily when using global headers; furthermore, the first output packet had two x264 SEIs. Reviewed-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r--libavcodec/libx264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 5f62c7b1d8..2b680abf21 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -944,7 +944,7 @@ static av_cold int X264_init(AVCodecContext *avctx)
#if X264_BUILD >= 142
/* Separate headers not supported in AVC-Intra mode */
- if (x4->params.i_avcintra_class >= 0)
+ if (x4->avcintra_class >= 0)
x4->params.b_repeat_headers = 1;
#endif