summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_ffmpeg.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-26 23:53:50 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-26 23:53:50 +0000
commit58bedbff1fb394f8aac5af40574e07dc56585f02 (patch)
tree9efcbbb717b089f7bc7be1f075ff1e6d861e61b7 /libmpcodecs/vd_ffmpeg.c
parent944d42db69937b4196cfd365e013f62af366bc4d (diff)
downloadmpv-58bedbff1fb394f8aac5af40574e07dc56585f02.tar.bz2
mpv-58bedbff1fb394f8aac5af40574e07dc56585f02.tar.xz
pass fourcc to lavc
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7513 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r--libmpcodecs/vd_ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 777a17689d..75c9da4bfe 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -160,6 +160,9 @@ static int init(sh_video_t *sh){
#if LIBAVCODEC_BUILD >= 4614
if(lavc_param_gray) avctx->flags|= CODEC_FLAG_GRAY;
#endif
+#if LIBAVCODEC_BUILD >= 4628
+ avctx->fourcc= sh->format;
+#endif
mp_dbg(MSGT_DECVIDEO,MSGL_DBG2,"libavcodec.size: %d x %d\n",avctx->width,avctx->height);
if (sh->format == mmioFOURCC('R', 'V', '1', '3'))