[FFmpeg-cvslog] lavc/hevcdec: move export_stream_params() from set_sps() to hevc_frame_start()
Anton Khirnov
git at videolan.org
Tue Jul 2 11:01:04 EEST 2024
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jun 26 14:36:31 2024 +0200| [5861576f39c8b40dabaf5d5d7e37b2e8eec51535] | committer: Anton Khirnov
lavc/hevcdec: move export_stream_params() from set_sps() to hevc_frame_start()
The only other caller of set_sps() --- hevc_update_thread_context() ---
does not need to call export_stream_params(), since it only updates
AVCodecContext fields that have already been updated by generic code.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5861576f39c8b40dabaf5d5d7e37b2e8eec51535
---
libavcodec/hevc/hevcdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
index 5136bb53d9..01d32086f2 100644
--- a/libavcodec/hevc/hevcdec.c
+++ b/libavcodec/hevc/hevcdec.c
@@ -541,8 +541,6 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps)
if (ret < 0)
goto fail;
- export_stream_params(s, sps);
-
ff_hevc_pred_init(&s->hpc, sps->bit_depth);
ff_hevc_dsp_init (&s->hevcdsp, sps->bit_depth);
ff_videodsp_init (&s->vdsp, sps->bit_depth);
@@ -2919,6 +2917,8 @@ static int hevc_frame_start(HEVCContext *s)
if (ret < 0)
return ret;
+ export_stream_params(s, sps);
+
pix_fmt = get_format(s, sps);
if (pix_fmt < 0)
return pix_fmt;
More information about the ffmpeg-cvslog
mailing list