diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 5d5b09f..fc86ae6 100644
|
a
|
b
|
static int mpegps_read_packet(AVFormatContext *s,
|
| 581 | 581 | goto skip; |
| 582 | 582 | avio_skip(s->pb, 6); |
| 583 | 583 | len -=6; |
| 584 | | } else { |
| | 584 | } else if (0){ |
| 585 | 585 | int b1, freq; |
| 586 | 586 | |
| 587 | 587 | /* for LPCM, we just skip the header and consider it is raw |
| … |
… |
static int mpegps_read_packet(AVFormatContext *s,
|
| 604 | 604 | else if (st->codec->bits_per_coded_sample == 28) |
| 605 | 605 | return AVERROR(EINVAL); |
| 606 | 606 | } |
| | 607 | else { |
| | 608 | avio_skip(s->pb, 16); |
| | 609 | len -= 16; |
| | 610 | st->codec->sample_rate = 44100; |
| | 611 | st->codec->channels = 2; |
| | 612 | st->codec->codec_id = AV_CODEC_ID_PCM_S16BE; |
| | 613 | } |
| 607 | 614 | } |
| 608 | 615 | ret = av_get_packet(s->pb, pkt, len); |
| 609 | 616 | pkt->pts = pts; |