| ... | ... |
@@ -211,7 +211,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst |
| 211 | 211 |
case AMF_DATA_TYPE_OBJECT: {
|
| 212 | 212 |
unsigned int keylen; |
| 213 | 213 |
|
| 214 |
- if (!strcmp(KEYFRAMES_TAG, key) && depth == 1) |
|
| 214 |
+ if (key && !strcmp(KEYFRAMES_TAG, key) && depth == 1) |
|
| 215 | 215 |
if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0) |
| 216 | 216 |
return -1; |
| 217 | 217 |
|