]> git.sesse.net Git - ffmpeg/commitdiff
remove ParseContext1
authorRafaël Carré <funman@videolan.org>
Thu, 9 Feb 2012 00:34:37 +0000 (19:34 -0500)
committerDiego Biurrun <diego@biurrun.de>
Fri, 10 Feb 2012 14:48:52 +0000 (15:48 +0100)
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavcodec/parser.c
libavcodec/parser.h

index 9fd7af6ce6453f7c2eb24de2852f792ec4592ae9..7a6b205207fae6ebe413996533b19e2b08d3508f 100644 (file)
@@ -289,14 +289,6 @@ void ff_parse_close(AVCodecParserContext *s)
     av_freep(&pc->buffer);
 }
 
-void ff_parse1_close(AVCodecParserContext *s)
-{
-    ParseContext1 *pc1 = s->priv_data;
-
-    av_free(pc1->pc.buffer);
-    av_free(pc1->enc);
-}
-
 /*************************/
 
 int ff_mpeg4video_split(AVCodecContext *avctx,
index 1e85ae40517191882932224d32f61de754798451..024b487bac82aa4d2b49629052e0831261eddd5c 100644 (file)
@@ -39,26 +39,12 @@ typedef struct ParseContext{
 
 struct MpegEncContext;
 
-typedef struct ParseContext1{
-    ParseContext pc;
-/* XXX/FIXME PC1 vs. PC */
-    /* MPEG-2-specific */
-    AVRational frame_rate;
-    int progressive_sequence;
-    int width, height;
-
-    /* XXX: suppress that, needed by MPEG-4 */
-    struct MpegEncContext *enc;
-    int first_picture;
-} ParseContext1;
-
 #define END_NOT_FOUND (-100)
 
 int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size);
 int ff_mpeg4video_split(AVCodecContext *avctx, const uint8_t *buf,
                         int buf_size);
 void ff_parse_close(AVCodecParserContext *s);
-void ff_parse1_close(AVCodecParserContext *s);
 
 /**
  * Fetch timestamps for a specific byte within the current access unit.