[FFmpeg-cvslog] avformat/matroskaenc: Check alpha_mode
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Tue Aug 26 09:20:07 CEST 2014
On 25.08.2014, at 19:55, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Mon, Aug 25, 2014 at 06:35:11AM +0200, Reimar Döffinger wrote:
>> On 24.08.2014, at 20:39, git at videolan.org (Michael Niedermayer) wrote:
>>> - if ((tag = av_dict_get(st->metadata, "alpha_mode", NULL, 0)) ||
>>> - (tag = av_dict_get( s->metadata, "alpha_mode", NULL, 0)) ||
>>> + if (((tag = av_dict_get(st->metadata, "alpha_mode", NULL, 0)) && atoi(tag->value)) ||
>>> + ((tag = av_dict_get( s->metadata, "alpha_mode", NULL, 0)) && atoi(tag->value)) ||
>>
>> Not sure it matters, but wouldn't value == NULL have worked before but would crash now?
>
> iam not sure i understand
> tag->value should never be NULL
> av_dict_set with a NULL value would delete the entry
I wasn't even aware of that, so forget what I said.
More information about the ffmpeg-cvslog
mailing list