Not once per each slice header, as it makes no sense and may cause races with frame threading.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -648,10 +648,6 @@ static int hls_slice_header(HEVCContext *s, GetBitContext *gb) · 647 unmodified lines | ||
| 648 | 648 | s->max_ra = INT_MAX; |
| 649 | 649 | } |
| 650 | 650 | |
| 651 | − ret = export_stream_params_from_sei(s); | |
| 652 | − if (ret < 0) | |
| 653 | − return ret; | |
| 654 | − | |
| 655 | 651 | sh->dependent_slice_segment_flag = 0; |
| 656 | 652 | if (!sh->first_slice_in_pic_flag) { |
| 657 | 653 | int slice_address_length; |
| @@ -2965,6 +2961,10 @@ static int hevc_frame_start(HEVCContext *s) · 2307 unmodified lines | ||
| 2965 | 2961 | !(s->avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN) && |
| 2966 | 2962 | !s->avctx->hwaccel; |
| 2967 | 2963 | |
| 2964 | + ret = export_stream_params_from_sei(s); | |
| 2965 | + if (ret < 0) | |
| 2966 | + return ret; | |
| 2967 | + | |
| 2968 | 2968 | ret = set_side_data(s); |
| 2969 | 2969 | if (ret < 0) |
| 2970 | 2970 | goto fail; |