]> git.sesse.net Git - ffmpeg/commitdiff
mpeg12: Move Mpeg1Context declaration to the only place it is used
authorDiego Biurrun <diego@biurrun.de>
Tue, 26 Mar 2013 18:52:21 +0000 (19:52 +0100)
committerDiego Biurrun <diego@biurrun.de>
Wed, 27 Mar 2013 13:26:11 +0000 (14:26 +0100)
libavcodec/mpeg12.h
libavcodec/mpeg12dec.c

index fc76511435bce17ba38edda70175f11bb8fdc307..9132dc3d2d08a6595dd02a76927c35c910ff0119 100644 (file)
@@ -41,21 +41,6 @@ extern VLC ff_mb_btype_vlc;
 extern VLC ff_mb_pat_vlc;
 extern VLC ff_mv_vlc;
 
-typedef struct Mpeg1Context {
-    MpegEncContext mpeg_enc_ctx;
-    int mpeg_enc_ctx_allocated; /* true if decoding context allocated */
-    int repeat_field; /* true if we must repeat the field */
-    AVPanScan pan_scan;              /**< some temporary storage for the panscan */
-    int slice_count;
-    int swap_uv;//indicate VCR2
-    int save_aspect_info;
-    int save_width, save_height, save_progressive_seq;
-    AVRational frame_rate_ext;       ///< MPEG-2 specific framerate modificator
-    int sync;                        ///< Did we reach a sync point like a GOP/SEQ/KEYFrame?
-    int closed_gop;                  ///< GOP is closed
-    int extradata_decoded;
-} Mpeg1Context;
-
 extern uint8_t ff_mpeg12_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3];
 
 void ff_mpeg12_common_init(MpegEncContext *s);
index 6c95f0f0d804c1d1d6a7d950cc247fd6da69048d..3bf20c69cd5c290b7b9649049175b05c464097aa 100644 (file)
 //#undef NDEBUG
 //#include <assert.h>
 
+typedef struct Mpeg1Context {
+    MpegEncContext mpeg_enc_ctx;
+    int mpeg_enc_ctx_allocated; /* true if decoding context allocated */
+    int repeat_field; /* true if we must repeat the field */
+    AVPanScan pan_scan;              /**< some temporary storage for the panscan */
+    int slice_count;
+    int swap_uv;//indicate VCR2
+    int save_aspect_info;
+    int save_width, save_height, save_progressive_seq;
+    AVRational frame_rate_ext;       ///< MPEG-2 specific framerate modificator
+    int sync;                        ///< Did we reach a sync point like a GOP/SEQ/KEYFrame?
+    int closed_gop;                  ///< GOP is closed
+    int extradata_decoded;
+} Mpeg1Context;
+
 /* as H.263, but only 17 codes */
 static int mpeg_decode_motion(MpegEncContext *s, int fcode, int pred)
 {