fixes Issue 2674
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
| ... | ... |
@@ -202,7 +202,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst |
| 202 | 202 |
case AMF_DATA_TYPE_OBJECT: {
|
| 203 | 203 |
unsigned int keylen; |
| 204 | 204 |
|
| 205 |
- if (!strcmp(KEYFRAMES_TAG, key) && depth == 1) |
|
| 205 |
+ if (key && !strcmp(KEYFRAMES_TAG, key) && depth == 1) |
|
| 206 | 206 |
if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0) |
| 207 | 207 |
return -1; |
| 208 | 208 |
|