changeset 8539:01ec89cc9a10 libavcodec

Rename mpeg_set_pixelformat() as mpeg_get_pixelformat().
author cehoyos
date Tue, 06 Jan 2009 18:58:18 +0000
parents 35f1b87d908f
children 1d9421a599ae
files mpeg12.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Tue Jan 06 15:16:33 2009 +0000
+++ b/mpeg12.c	Tue Jan 06 18:58:18 2009 +0000
@@ -1212,7 +1212,7 @@
     }
 }
 
-static enum PixelFormat mpeg_set_pixelformat(AVCodecContext *avctx){
+static enum PixelFormat mpeg_get_pixelformat(AVCodecContext *avctx){
     Mpeg1Context *s1 = avctx->priv_data;
     MpegEncContext *s = &s1->mpeg_enc_ctx;
 
@@ -1304,7 +1304,7 @@
             }
         }//MPEG-2
 
-        avctx->pix_fmt = mpeg_set_pixelformat(avctx);
+        avctx->pix_fmt = mpeg_get_pixelformat(avctx);
         //until then pix_fmt may be changed right after codec init
         if( avctx->pix_fmt == PIX_FMT_XVMC_MPEG2_IDCT )
             if( avctx->idct_algo == FF_IDCT_AUTO )
@@ -2073,7 +2073,7 @@
     avctx->has_b_frames= 0; //true?
     s->low_delay= 1;
 
-    avctx->pix_fmt = mpeg_set_pixelformat(avctx);
+    avctx->pix_fmt = mpeg_get_pixelformat(avctx);
 
     if( avctx->pix_fmt == PIX_FMT_XVMC_MPEG2_IDCT )
         if( avctx->idct_algo == FF_IDCT_AUTO )