Mercurial > libavformat.hg
comparison mpegtsenc.c @ 4217:2f3780431c5a libavformat
consider other codecs packets contain only one access unit, not just audio
author | bcoudurier |
---|---|
date | Wed, 14 Jan 2009 23:53:31 +0000 |
parents | de2177071c01 |
children | 3bfd8604f480 |
comparison
equal
deleted
inserted
replaced
4216:de2177071c01 | 4217:2f3780431c5a |
---|---|
718 if (state == PICTURE_START_CODE) { | 718 if (state == PICTURE_START_CODE) { |
719 access_unit_index = p - 4; | 719 access_unit_index = p - 4; |
720 break; | 720 break; |
721 } | 721 } |
722 } | 722 } |
723 } else if (st->codec->codec_type == CODEC_TYPE_AUDIO) { | 723 } else { |
724 access_unit_index = pkt->data; | 724 access_unit_index = pkt->data; |
725 } | 725 } |
726 | 726 |
727 if (!access_unit_index) { | 727 if (!access_unit_index) { |
728 av_log(s, AV_LOG_ERROR, "error, could not find access unit start\n"); | 728 av_log(s, AV_LOG_ERROR, "error, could not find access unit start\n"); |