[Libav-user] Problem in setting stream side data
Davood Falahati
falahati.davood at gmail.com
Fri Jan 19 13:59:28 EET 2018
Carl and Mirko,
Thank you for your replies. I resolved the problem by allocating
in_stream->side_data->data
if(av_stream_get_side_data(in_stream ,
AV_PKT_DATA_DISPLAYMATRIX, sd_size)!=NULL){
uint8_t* resp=(uint8_t*)
av_mallocz(in_stream->side_data->size+AV_INPUT_BUFFER_MIN_SIZE);
resp = av_stream_get_side_data(in_stream ,
AV_PKT_DATA_DISPLAYMATRIX, sd_size);
in_stream->side_data->data = (uint8_t*) av_mallocz(
in_stream->side_data->size*sizeof(uint8_t*)
);
av_stream_add_side_data(out_stream,
AV_PKT_DATA_DISPLAYMATRIX, resp, *sd_size);
}
}
> For real errors as in this case, recompiling and hoping that the
> output is helpful seems much more difficult than running a
> simulator that is known to cover exactly these cases.
You were right Carl.
Regards,
Davood Falahati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20180119/94fcdeeb/attachment.html>
More information about the Libav-user
mailing list