~ubuntu-branches/ubuntu/saucy/gst-libav1.0/saucy-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-07-30 09:00:15 UTC
  • mfrom: (1.1.16) (7.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130730090015-sc1ou2yssu7q5w4e
Tags: 1.1.3-1
* New upstream development snapshot:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        uint8_t type = buf[0] & 0x1F;
56
56
        uint8_t nri = buf[0] & 0x60;
57
57
 
 
58
        if (s->flags & FF_RTP_FLAG_H264_MODE0) {
 
59
            av_log(s1, AV_LOG_ERROR,
 
60
                   "NAL size %d > %d, try -slice-max-size %d\n", size,
 
61
                   s->max_payload_size, s->max_payload_size);
 
62
            return;
 
63
        }
58
64
        av_log(s1, AV_LOG_DEBUG, "NAL size %d > %d\n", size, s->max_payload_size);
59
65
        s->buf[0] = 28;        /* FU Indicator; Type = 28 ---> FU-A */
60
66
        s->buf[0] |= nri;