mirror of https://github.com/mpv-player/mpv
Indentation and other whitespace fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28558 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1538fddada
commit
c81dd09974
|
@ -682,7 +682,7 @@ static void release_buffer(struct AVCodecContext *avctx, AVFrame *pic){
|
||||||
}
|
}
|
||||||
|
|
||||||
// Palette support: free palette buffer allocated in get_buffer
|
// Palette support: free palette buffer allocated in get_buffer
|
||||||
if ( mpi && (mpi->bpp == 8))
|
if (mpi && (mpi->bpp == 8))
|
||||||
av_freep(&mpi->planes[1]);
|
av_freep(&mpi->planes[1]);
|
||||||
|
|
||||||
if(pic->type!=FF_BUFFER_TYPE_USER){
|
if(pic->type!=FF_BUFFER_TYPE_USER){
|
||||||
|
@ -876,8 +876,8 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
|
||||||
#if CONFIG_XVMC
|
#if CONFIG_XVMC
|
||||||
static enum PixelFormat get_format(struct AVCodecContext * avctx,
|
static enum PixelFormat get_format(struct AVCodecContext * avctx,
|
||||||
const enum PixelFormat * fmt){
|
const enum PixelFormat * fmt){
|
||||||
sh_video_t * sh = avctx->opaque;
|
sh_video_t * sh = avctx->opaque;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if(avctx->xvmc_acceleration){
|
if(avctx->xvmc_acceleration){
|
||||||
vd_ffmpeg_ctx *ctx = sh->context;
|
vd_ffmpeg_ctx *ctx = sh->context;
|
||||||
|
@ -1022,9 +1022,9 @@ static void mc_release_buffer(AVCodecContext *avctx, AVFrame *pic){
|
||||||
static void mc_render_slice(struct AVCodecContext *s,
|
static void mc_render_slice(struct AVCodecContext *s,
|
||||||
AVFrame *src, int offset[4],
|
AVFrame *src, int offset[4],
|
||||||
int y, int type, int height){
|
int y, int type, int height){
|
||||||
int width= s->width;
|
int width= s->width;
|
||||||
sh_video_t * sh = s->opaque;
|
sh_video_t * sh = s->opaque;
|
||||||
uint8_t *source[3]= {src->data[0], src->data[1], src->data[2]};
|
uint8_t *source[3]= {src->data[0], src->data[1], src->data[2]};
|
||||||
|
|
||||||
assert(src->linesize[0]==0 && src->linesize[1]==0 && src->linesize[2]==0);
|
assert(src->linesize[0]==0 && src->linesize[1]==0 && src->linesize[2]==0);
|
||||||
assert(offset[0]==0 && offset[1]==0 && offset[2]==0);
|
assert(offset[0]==0 && offset[1]==0 && offset[2]==0);
|
||||||
|
|
Loading…
Reference in New Issue