[FFmpeg-devel] [PATCH 1/2] avcodec/libvpxdec: remove unnecessary init_static_data function

James Almer jamrial at gmail.com
Tue Feb 28 22:49:25 EET 2023


On 2/28/2023 5:40 PM, James Zern wrote:
> On Tue, Feb 28, 2023 at 4:07 AM James Almer <jamrial at gmail.com> wrote:
>>
>> It's used only by the encoder.
>>
> 
> It sets AVCodec.pix_fmts, but maybe the values reported aren't used
> meaningfully.

Indeed, they aren't. AVCodec.pix_fmts is a list of formats an encoder 
accepts as input. Decoders don't use that array.

> 
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>>   libavcodec/libvpxdec.c | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
>> index 0ae19c3f72..8e6291fe20 100644
>> --- a/libavcodec/libvpxdec.c
>> +++ b/libavcodec/libvpxdec.c
>> @@ -391,6 +391,5 @@ FFCodec ff_libvpx_vp9_decoder = {
>>       FF_CODEC_DECODE_CB(vpx_decode),
>>       .caps_internal  = FF_CODEC_CAP_NOT_INIT_THREADSAFE |
>>                         FF_CODEC_CAP_AUTO_THREADS,
>> -    .init_static_data = ff_vp9_init_static,
>>   };
>>   #endif /* CONFIG_LIBVPX_VP9_DECODER */
>> --
>> 2.39.2
>>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list