~ubuntu-branches/ubuntu/trusty/gst-libav1.0/trusty

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavformat/oggparseogm.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge, Iain Lane, Sebastian Dröge
  • Date: 2014-02-09 11:42:06 UTC
  • mfrom: (13.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20140209114206-ksn1eu97d9pt2iza
Tags: 1.2.3-1
[ Iain Lane ]
* Drop ltmain-as-needed patch and do the same with dh_autoreconf
  --as-needed.

[ Sebastian Dröge ]
* New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
        time_unit   = bytestream2_get_le64(&p);
77
77
        spu         = bytestream2_get_le64(&p);
 
78
        if (!time_unit || !spu) {
 
79
            av_log(s, AV_LOG_ERROR, "Invalid timing values.\n");
 
80
            return AVERROR_INVALIDDATA;
 
81
        }
 
82
 
78
83
        bytestream2_skip(&p, 4);    /* default_len */
79
84
        bytestream2_skip(&p, 8);    /* buffersize + bits_per_sample */
80
85