~ubuntu-branches/debian/experimental/libav/experimental

« back to all changes in this revision

Viewing changes to libavformat/pmpdec.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2014-01-18 15:46:55 UTC
  • mfrom: (1.1.24)
  • Revision ID: package-import@ubuntu.com-20140118154655-iz6u00yevkat1jqi
Tags: 6:10~alpha2-1
New Upstream release 10_alpha2. This upstream git snapshot has too many
changes to list here, cf. to the upstream Changelog:
http://git.libav.org/?p=libav.git;a=blob;f=Changelog;hb=refs/tags/v10_alpha2

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
    if (pmp->cur_stream == 0) {
125
125
        int num_packets;
126
126
        pmp->audio_packets = avio_r8(pb);
 
127
        if (!pmp->audio_packets) {
 
128
            av_log(s, AV_LOG_ERROR, "No audio packets.\n");
 
129
            return AVERROR_INVALIDDATA;
 
130
        }
 
131
 
127
132
        num_packets = (pmp->num_streams - 1) * pmp->audio_packets + 1;
128
133
        avio_skip(pb, 8);
129
134
        pmp->current_packet = 0;