Skip to content

Commit

Permalink
avcodec/libx264: Don't unnecessarily add in-band extradata
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
  • Loading branch information
mkver committed Dec 21, 2021
1 parent 50bfd5e commit 155dcfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/libx264.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 155dcfe

Please sign in to comment.