Remove AVFilterBuffer w and h fields.
These fields are never used, and they do not seem to belong to AVFilterBuffer anymore, now that it is now a media-independent structure and these fields are video-related. Patch by S.N. Hemanth Meenakshisundaram smeenaks ! ucsd ! edu. Originally committed as revision 24291 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
				
					committed by
					
						
						Stefano Sabatini
					
				
			
			
				
	
			
			
			
						parent
						
							eedc4ee5d8
						
					
				
				
					commit
					b5c582fa9d
				
			@@ -25,7 +25,7 @@
 | 
				
			|||||||
#include "libavutil/avutil.h"
 | 
					#include "libavutil/avutil.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define LIBAVFILTER_VERSION_MAJOR  1
 | 
					#define LIBAVFILTER_VERSION_MAJOR  1
 | 
				
			||||||
#define LIBAVFILTER_VERSION_MINOR 24
 | 
					#define LIBAVFILTER_VERSION_MINOR 25
 | 
				
			||||||
#define LIBAVFILTER_VERSION_MICRO  0
 | 
					#define LIBAVFILTER_VERSION_MICRO  0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
 | 
					#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
 | 
				
			||||||
@@ -84,8 +84,6 @@ typedef struct AVFilterBuffer
 | 
				
			|||||||
     * reallocating it from scratch.
 | 
					     * reallocating it from scratch.
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    void (*free)(struct AVFilterBuffer *pic);
 | 
					    void (*free)(struct AVFilterBuffer *pic);
 | 
				
			||||||
 | 
					 | 
				
			||||||
    int w, h;                  ///< width and height of the allocated buffer
 | 
					 | 
				
			||||||
} AVFilterBuffer;
 | 
					} AVFilterBuffer;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -40,8 +40,8 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms,
 | 
				
			|||||||
    char *buf;
 | 
					    char *buf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ref->pic   = pic;
 | 
					    ref->pic   = pic;
 | 
				
			||||||
    ref->w     = pic->w = w;
 | 
					    ref->w     = w;
 | 
				
			||||||
    ref->h     = pic->h = h;
 | 
					    ref->h     = h;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* make sure the buffer gets read permission or it's useless for output */
 | 
					    /* make sure the buffer gets read permission or it's useless for output */
 | 
				
			||||||
    ref->perms = perms | AV_PERM_READ;
 | 
					    ref->perms = perms | AV_PERM_READ;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user