~siretart/libav/trusty

« back to all changes in this revision

Viewing changes to libavformat/rtpenc_h263.c

  • Committer: Reinhard Tartler
  • Date: 2013-10-23 03:04:17 UTC
  • mfrom: (1.3.36 sid)
  • Revision ID: siretart@tauware.de-20131023030417-1o6mpkl1l0raifjt
mergeĀ fromĀ debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "avformat.h"
24
24
#include "rtpenc.h"
25
25
 
26
 
static const uint8_t *find_resync_marker_reverse(const uint8_t *restrict start,
27
 
                                                 const uint8_t *restrict end)
 
26
const uint8_t *ff_h263_find_resync_marker_reverse(const uint8_t *restrict start,
 
27
                                                  const uint8_t *restrict end)
28
28
{
29
29
    const uint8_t *p = end - 1;
30
30
    start += 1; /* Make sure we never return the original start. */
63
63
 
64
64
        /* Look for a better place to split the frame into packets. */
65
65
        if (len < size) {
66
 
            const uint8_t *end = find_resync_marker_reverse(buf1, buf1 + len);
 
66
            const uint8_t *end = ff_h263_find_resync_marker_reverse(buf1,
 
67
                                                                    buf1 + len);
67
68
            len = end - buf1;
68
69
        }
69
70