avformat/flvdec: fix potential use of uninitialized variables
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a2fa1889a6
commit
0fadbd3623
@ -459,11 +459,11 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (key) {
|
if (key) {
|
||||||
|
acodec = astream ? astream->codec : NULL;
|
||||||
|
vcodec = vstream ? vstream->codec : NULL;
|
||||||
|
|
||||||
// stream info doesn't live any deeper than the first object
|
// stream info doesn't live any deeper than the first object
|
||||||
if (depth == 1) {
|
if (depth == 1) {
|
||||||
acodec = astream ? astream->codec : NULL;
|
|
||||||
vcodec = vstream ? vstream->codec : NULL;
|
|
||||||
|
|
||||||
if (amf_type == AMF_DATA_TYPE_NUMBER ||
|
if (amf_type == AMF_DATA_TYPE_NUMBER ||
|
||||||
amf_type == AMF_DATA_TYPE_BOOL) {
|
amf_type == AMF_DATA_TYPE_BOOL) {
|
||||||
if (!strcmp(key, "duration"))
|
if (!strcmp(key, "duration"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user