[Libav-user] Problem in setting stream side data

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Jan 20 03:33:26 EET 2018


2018-01-19 22:12 GMT+01:00 Davood Falahati <falahati.davood at gmail.com>:
> Dear Carl,
>
>> Possibly unneeded cast and you should check all
>> allocations for success.This one works in C
>
>        if(in_stream->side_data!=NULL){
>
>                int *sd_size=malloc(sizeof(int*));

Not sure why this is allocated on the heap, but
the allocation is not checked.

Carl Eugen


More information about the Libav-user mailing list