Skip to content

Commit

Permalink
Refs #8134. revert most of [24239]. Anduin withers reported it makes …
Browse files Browse the repository at this point in the history
…ivtv generated mpeg files unplayable. janneg is assisting in finding a better solution anyways.

git-svn-id: http://svn.mythtv.org/svn/trunk@24306 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
Stanley Kamithi committed Apr 29, 2010
1 parent d944a73 commit a3d6e14
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mythtv/libs/libavformat/mpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ static int mpegps_read_packet(AVFormatContext *s,
if (codec_id != CODEC_ID_PCM_S16BE)
st->need_parsing = AVSTREAM_PARSE_FULL;

/* notify the callback of the change in streams for non Audio streams*/
if (s->streams_changed && type != CODEC_TYPE_AUDIO) {
/* notify the callback of the change in streams */
if (s->streams_changed) {
s->streams_changed(s->stream_change_data);
}

Expand Down Expand Up @@ -565,12 +565,6 @@ static int mpegps_read_packet(AVFormatContext *s,
else if (st->codec->bits_per_coded_sample == 28)
return AVERROR(EINVAL);
}

/* notify the callback of the change in streams for Audio streams*/
if (s->streams_changed && type == CODEC_TYPE_AUDIO) {
s->streams_changed(s->stream_change_data);
}

av_new_packet(pkt, len);
get_buffer(s->pb, pkt->data, pkt->size);
pkt->pts = pts;
Expand Down

0 comments on commit a3d6e14

Please sign in to comment.