1
mirror of https://github.com/mpv-player/mpv synced 2025-01-16 22:37:28 +01:00

Avoid the error message "Unsupported PixelFormat -1" for ffh264 decoding

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30233 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
zuxy 2010-01-07 04:59:50 +00:00
parent 78267a4d21
commit 554231067d

View File

@ -207,6 +207,8 @@ void mp_msp_av_log_callback(void *ptr, int level, const char *fmt, va_list vl)
static void set_format_params(struct AVCodecContext *avctx, enum PixelFormat fmt){
int imgfmt;
if (fmt == PIX_FMT_NONE)
return;
imgfmt = pixfmt2imgfmt(fmt);
if (IMGFMT_IS_XVMC(imgfmt) || IMGFMT_IS_VDPAU(imgfmt)) {
sh_video_t *sh = avctx->opaque;