flv demuxer: dont error out due to index problems, but inform the user about it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							parent
							
								
									9891004ba9
								
							
						
					
					
						commit
						d6f79edb6e
					
				@ -211,7 +211,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            if (ioc->seekable && 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;
 | 
					                    av_log(s, AV_LOG_ERROR, "Keyframe index parsing failed\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            while(avio_tell(ioc) < max_pos - 2 && (keylen = avio_rb16(ioc))) {
 | 
					            while(avio_tell(ioc) < max_pos - 2 && (keylen = avio_rb16(ioc))) {
 | 
				
			||||||
                avio_skip(ioc, keylen); //skip key string
 | 
					                avio_skip(ioc, keylen); //skip key string
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user