SimpleBlock keyframe flag is the most significant bit
Originally committed as revision 10274 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							parent
							
								
									63ecfc1fe4
								
							
						
					
					
						commit
						84fa6e23fb
					
				@ -2291,7 +2291,7 @@ matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size,
 | 
				
			|||||||
    flags = *data++;
 | 
					    flags = *data++;
 | 
				
			||||||
    size -= 3;
 | 
					    size -= 3;
 | 
				
			||||||
    if (is_keyframe == -1)
 | 
					    if (is_keyframe == -1)
 | 
				
			||||||
        is_keyframe = flags & 1 ? PKT_FLAG_KEY : 0;
 | 
					        is_keyframe = flags & 0x80 ? PKT_FLAG_KEY : 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (matroska->skip_to_keyframe) {
 | 
					    if (matroska->skip_to_keyframe) {
 | 
				
			||||||
        if (!is_keyframe || st != matroska->skip_to_stream)
 | 
					        if (!is_keyframe || st != matroska->skip_to_stream)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user