mirror of https://git.ffmpeg.org/ffmpeg.git
flv: Only parse keyframe index when the underlaying protocol allows seeking as we need to seek to read the index
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ba667e600f
commit
c0577ceb55
|
@ -203,7 +203,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
|
||||||
case AMF_DATA_TYPE_OBJECT: {
|
case AMF_DATA_TYPE_OBJECT: {
|
||||||
unsigned int keylen;
|
unsigned int keylen;
|
||||||
|
|
||||||
if (key && !strcmp(KEYFRAMES_TAG, key) && depth == 1)
|
if (ioc->seekable && key && !strcmp(KEYFRAMES_TAG, key) && depth == 1)
|
||||||
if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0)
|
if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue