metadata: Fix potential crash on 3GP scanning
If we encounter a 3GP video file with no audio stream, we could end up accessing out-of-bounds memory.
This commit is contained in:
parent
da7d868c4b
commit
f816911f0c
@ -1273,8 +1273,8 @@ GetVideoMetadata(const char *path, char *name)
|
|||||||
off += sprintf(m.dlna_pn+off, "3GPP_SP_L0B_AMR");
|
off += sprintf(m.dlna_pn+off, "3GPP_SP_L0B_AMR");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
DPRINTF(E_DEBUG, L_METADATA, "No DLNA profile found for MPEG4-P2 3GP/0x%X file %s\n",
|
DPRINTF(E_DEBUG, L_METADATA, "No DLNA profile found for MPEG4-P2 3GP/%d file %s\n",
|
||||||
lav_codec_id(astream), basepath);
|
audio_profile, basepath);
|
||||||
free(m.dlna_pn);
|
free(m.dlna_pn);
|
||||||
m.dlna_pn = NULL;
|
m.dlna_pn = NULL;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user