fix av_seek_frame_generic() so that it doesnt fail if the
requested timestamp is after the last with backward flag Originally committed as revision 8783 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							parent
							
								
									0aecfdf930
								
							
						
					
					
						commit
						b5a3541da1
					
				| @ -1279,7 +1279,7 @@ static int av_seek_frame_generic(AVFormatContext *s, | ||||
| 
 | ||||
|     index = av_index_search_timestamp(st, timestamp, flags); | ||||
| 
 | ||||
|     if(index < 0){ | ||||
|     if(index < 0 || index==st->nb_index_entries-1){ | ||||
|         int i; | ||||
|         AVPacket pkt; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user