avdemux: Fix segmentation fault if long_name is NULL
authorKevin JOLY <kevin.joly@heig-vd.ch>
Mon, 4 Nov 2019 14:39:59 +0000 (15:39 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 17 Nov 2019 14:17:33 +0000 (14:17 +0000)
commit36c4ae01143ffe8836bffd46237e884be95c88cd
tree61944a7945fd6586c9708b7cd83a3b06adc40ae6
parent20d73cbfeb51d9d9349a35156a15018fb7770d8e
avdemux: Fix segmentation fault if long_name is NULL

Some plugins (like libcdio) registers empty long_name field. Calling strncmp on this field leads to a segmentation fault.

Signed-off-by: Kevin Joly <joly.kevin25@gmail.com>
ext/libav/gstavdemux.c