[FFmpeg-cvslog] r11268 - in trunk/libavformat: avformat.h avio.c avio.h
michael
subversion
Wed Dec 19 12:31:37 CET 2007
Author: michael
Date: Wed Dec 19 12:31:36 2007
New Revision: 11268
Log:
Remove dead code which disapeared with the last major version bump.
Modified:
trunk/libavformat/avformat.h
trunk/libavformat/avio.c
trunk/libavformat/avio.h
Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h (original)
+++ trunk/libavformat/avformat.h Wed Dec 19 12:31:36 2007
@@ -136,9 +136,6 @@ typedef struct AVFormatParameters {
int height;
enum PixelFormat pix_fmt;
int channel; /**< used to select dv channel */
-#if LIBAVFORMAT_VERSION_INT < (52<<16)
- const char *device; /**< video, audio or DV device */
-#endif
const char *standard; /**< tv standard, NTSC, PAL, SECAM */
int mpeg2ts_raw:1; /**< force raw MPEG2 transport stream output, if possible */
int mpeg2ts_compute_pcr:1; /**< compute exact PCR for each transport
@@ -289,9 +286,6 @@ typedef struct AVStream {
/* internal data used in av_find_stream_info() */
int64_t first_dts;
-#if LIBAVFORMAT_VERSION_INT < (52<<16)
- int codec_info_nb_frames;
-#endif
/** encoding: PTS generation when outputing stream */
struct AVFrac pts;
Modified: trunk/libavformat/avio.c
==============================================================================
--- trunk/libavformat/avio.c (original)
+++ trunk/libavformat/avio.c Wed Dec 19 12:31:36 2007
@@ -82,9 +82,7 @@ int url_open(URLContext **puc, const cha
err = AVERROR(ENOMEM);
goto fail;
}
-#if LIBAVFORMAT_VERSION_INT >= (52<<16)
uc->filename = (char *) &uc[1];
-#endif
strcpy(uc->filename, filename);
uc->prot = up;
uc->flags = flags;
Modified: trunk/libavformat/avio.h
==============================================================================
--- trunk/libavformat/avio.h (original)
+++ trunk/libavformat/avio.h Wed Dec 19 12:31:36 2007
@@ -35,11 +35,7 @@ struct URLContext {
int is_streamed; /**< true if streamed (no seek possible), default = false */
int max_packet_size; /**< if non zero, the stream is packetized with this max packet size */
void *priv_data;
-#if LIBAVFORMAT_VERSION_INT >= (52<<16)
char *filename; /**< specified filename */
-#else
- char filename[1]; /**< specified filename */
-#endif
};
typedef struct URLContext URLContext;
More information about the ffmpeg-cvslog
mailing list