diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-03-26 19:52:21 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-03-27 14:26:11 +0100 |
commit | e557584aa7df6ac9f52af7ee7e5c963437da2e2f (patch) | |
tree | 0d5d39e24dbd9559587d2bdfef2041a8a03d8dbf /libavcodec/mpeg12dec.c | |
parent | 1b6d66745ac1768adb387c2227cdcf4452271149 (diff) | |
download | ffmpeg-e557584aa7df6ac9f52af7ee7e5c963437da2e2f.tar.gz |
mpeg12: Move Mpeg1Context declaration to the only place it is used
Diffstat (limited to 'libavcodec/mpeg12dec.c')
-rw-r--r-- | libavcodec/mpeg12dec.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 6c95f0f0d8..3bf20c69cd 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -43,6 +43,21 @@ //#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) { |