Re: [FFmpeg-devel] [PATCH] hevc_parser: drop the use of SliceHeader

2020-05-27 Thread James Almer
On 5/27/2020 6:03 AM, Anton Khirnov wrote: > It is only used to store a few local variables within one function, > which is better accomplished by just declaring them on stack explicitly. > > Move SliceHeader back from hevc_ps.h to hevdec.h, since it is not > related to parameters sets. > --- > l

[FFmpeg-devel] [PATCH] hevc_parser: drop the use of SliceHeader

2020-05-27 Thread Anton Khirnov
It is only used to store a few local variables within one function, which is better accomplished by just declaring them on stack explicitly. Move SliceHeader back from hevc_ps.h to hevdec.h, since it is not related to parameters sets. --- libavcodec/hevc_parser.c | 57 +++-