Revision 34056cbb

View differences:

libavformat/rtpenc_h263.c
50 50

  
51 51
    while (size > 0) {
52 52
        q = s->buf;
53
        if ((buf1[0] == 0) && (buf1[1] == 0)) {
53
        if (size >= 2 && (buf1[0] == 0) && (buf1[1] == 0)) {
54 54
            *q++ = 0x04;
55 55
            buf1 += 2;
56 56
            size -= 2;

Also available in: Unified diff