Revision e4f42564 libavcodec/dvdsub_parser.c

View differences:

libavcodec/dvdsub_parser.c
43 43
        if (buf_size < 2)
44 44
            return 0;
45 45
        pc->packet_len = AV_RB16(buf);
46
        if (pc->packet_len == 0) /* HD-DVD subpicture packet */
47
            pc->packet_len = AV_RB32(buf+2);
46 48
        av_freep(&pc->packet);
47 49
        pc->packet = av_malloc(pc->packet_len);
48 50
    }

Also available in: Unified diff