Add avio_skip()
This commit is contained in:
		
							parent
							
								
									b33fa8a1cd
								
							
						
					
					
						commit
						75a8e0f0ab
					
				@ -476,6 +476,12 @@ int avio_put_str16le(AVIOContext *s, const char *str);
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence);
 | 
					int64_t avio_seek(AVIOContext *s, int64_t offset, int whence);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Skip given number of bytes forward
 | 
				
			||||||
 | 
					 * @return new position or AVERROR.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					int64_t avio_skip(AVIOContext *s, int64_t offset);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * ftell() equivalent for AVIOContext.
 | 
					 * ftell() equivalent for AVIOContext.
 | 
				
			||||||
 * @return position or AVERROR.
 | 
					 * @return position or AVERROR.
 | 
				
			||||||
 | 
				
			|||||||
@ -233,6 +233,11 @@ int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
 | 
				
			|||||||
    return offset;
 | 
					    return offset;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int64_t avio_skip(AVIOContext *s, int64_t offset)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    return avio_seek(s, offset, SEEK_CUR);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if FF_API_OLD_AVIO
 | 
					#if FF_API_OLD_AVIO
 | 
				
			||||||
int url_fskip(AVIOContext *s, int64_t offset)
 | 
					int url_fskip(AVIOContext *s, int64_t offset)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user