History

lavc/hevcdec: only call export_stream_params_from_sei() once per frame

Not once per each slice header, as it makes no sense and may cause races with frame threading.

Anton Khirnov committed 2 years ago

Commit 07eb60c1 parent 01b379a1 file · +4 −4Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/hevc/hevcdec.c+4−4
@@ -648,10 +648,6 @@ static int hls_slice_header(HEVCContext *s, GetBitContext *gb) · 647 unmodified lines
648648 s->max_ra = INT_MAX;
649649 }
650650
651− ret = export_stream_params_from_sei(s);
652− if (ret < 0)
653− return ret;
654−
655651 sh->dependent_slice_segment_flag = 0;
656652 if (!sh->first_slice_in_pic_flag) {
657653 int slice_address_length;
@@ -2965,6 +2961,10 @@ static int hevc_frame_start(HEVCContext *s) · 2307 unmodified lines
29652961 !(s->avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN) &&
29662962 !s->avctx->hwaccel;
29672963
2964+ ret = export_stream_params_from_sei(s);
2965+ if (ret < 0)
2966+ return ret;
2967+
29682968 ret = set_side_data(s);
29692969 if (ret < 0)
29702970 goto fail;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t