Mercurial > mplayer.hg
comparison libmpcodecs/vd_ffmpeg.c @ 33010:fafbc46915db
Change MP_IMGFLAG_ACCEPT_STRIDE to MP_IMGFLAG_ACCEPT_ALIGNED_STRIDE as various
FFmpeg assembly routines assume aligned input.
author | zuxy |
---|---|
date | Wed, 23 Mar 2011 14:52:13 +0000 |
parents | 3544ba7244bf |
children | 55de45e1d943 |
comparison
equal
deleted
inserted
replaced
33009:3138b52fdd10 | 33010:fafbc46915db |
---|---|
581 | 581 |
582 static int get_buffer(AVCodecContext *avctx, AVFrame *pic){ | 582 static int get_buffer(AVCodecContext *avctx, AVFrame *pic){ |
583 sh_video_t *sh = avctx->opaque; | 583 sh_video_t *sh = avctx->opaque; |
584 vd_ffmpeg_ctx *ctx = sh->context; | 584 vd_ffmpeg_ctx *ctx = sh->context; |
585 mp_image_t *mpi=NULL; | 585 mp_image_t *mpi=NULL; |
586 int flags= MP_IMGFLAG_ACCEPT_STRIDE | MP_IMGFLAG_PREFER_ALIGNED_STRIDE; | 586 int flags= MP_IMGFLAG_ACCEPT_ALIGNED_STRIDE | MP_IMGFLAG_PREFER_ALIGNED_STRIDE; |
587 int type= MP_IMGTYPE_IPB; | 587 int type= MP_IMGTYPE_IPB; |
588 int width= avctx->width; | 588 int width= avctx->width; |
589 int height= avctx->height; | 589 int height= avctx->height; |
590 avcodec_align_dimensions(avctx, &width, &height); | 590 avcodec_align_dimensions(avctx, &width, &height); |
591 //printf("get_buffer %d %d %d\n", pic->reference, ctx->ip_count, ctx->b_count); | 591 //printf("get_buffer %d %d %d\n", pic->reference, ctx->ip_count, ctx->b_count); |