This can easily happen when the caller is using a custom AVIOContext. Behave as if the filename was an empty string in this case. CC: libav-stable@libav.org (cherry picked from committags/n0.8.13a5db8e4a1a) Signed-off-by: Anton Khirnov <anton@khirnov.net> (cherry picked from commit7124fa5d36) Signed-off-by: Anton Khirnov <anton@khirnov.net>