diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-10-08 07:41:13 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-08 10:41:43 +0200 |
commit | ffb32d35eee616f79a37c4c96f37f2697932cc32 (patch) | |
tree | 837715a127a8fe762bee9864394404602b358057 | |
parent | e149be38a86fbb81fb3313c8a86a819baa42c9eb (diff) | |
download | ffmpeg-ffb32d35eee616f79a37c4c96f37f2697932cc32.tar.gz |
avformat/mpeg: Remove set-but-unused variable
Forgotten in 7da57875.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r-- | libavformat/mpeg.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 6f132aae05..bd182e4429 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -489,7 +489,6 @@ static int mpegps_read_packet(AVFormatContext *s, MpegDemuxContext *m = s->priv_data; AVStream *st; int len, startcode, i, es_type, ret; - int lpcm_header_len = -1; //Init to suppress warning int pcm_dvd = 0; int request_probe= 0; enum AVCodecID codec_id = AV_CODEC_ID_NONE; @@ -507,8 +506,7 @@ redo: if (!m->raw_ac3) { /* audio: skip header */ - avio_r8(s->pb); - lpcm_header_len = avio_rb16(s->pb); + avio_skip(s->pb, 3); len -= 3; if (startcode >= 0xb0 && startcode <= 0xbf) { /* MLP/TrueHD audio has a 4-byte header */ |