summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-11-01 18:02:03 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-11-01 18:02:03 +0000
commit2009c7fc96e0104898161b35f822d43b55576de5 (patch)
treede0221028a4e08e315ef8fda288ae3f0dfbc64b7 /libavformat/mpeg.c
parentc4cc361099fca9f100336c4178382b8901f2c954 (diff)
revert part of r10899 which was not intended
Originally committed as revision 10901 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index b23845f2fc..0f8270a4fc 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -85,25 +85,15 @@ static int mpegps_probe(AVProbeData *p)
typedef struct MpegDemuxContext {
int32_t header_state;
unsigned char psm_es_type[256];
- int sofdec;
} MpegDemuxContext;
static int mpegps_read_header(AVFormatContext *s,
AVFormatParameters *ap)
{
MpegDemuxContext *m = s->priv_data;
- uint8_t buffer[8192];
- char *p;
-
m->header_state = 0xff;
s->ctx_flags |= AVFMTCTX_NOHEADER;
- get_buffer(&s->pb, buffer, sizeof(buffer));
- if ((p=memchr(buffer, 'S', sizeof(buffer))))
- if (!memcmp(p, "Sofdec", 6))
- m->sofdec = 1;
- url_fseek(&s->pb, -sizeof(buffer), SEEK_CUR);
-
/* no need to do more */
return 0;
}
@@ -437,7 +427,7 @@ static int mpegps_read_packet(AVFormatContext *s,
type = CODEC_TYPE_VIDEO;
} else if (startcode >= 0x1c0 && startcode <= 0x1df) {
type = CODEC_TYPE_AUDIO;
- codec_id = m->sofdec ? CODEC_ID_ADPCM_ADX : CODEC_ID_MP2;
+ codec_id = CODEC_ID_MP2;
} else if (startcode >= 0x80 && startcode <= 0x87) {
type = CODEC_TYPE_AUDIO;
codec_id = CODEC_ID_AC3;