Revision f7346719

View differences:

libavcodec/wmaprodec.c
1506 1506
        s->packet_sequence_number = packet_sequence_number;
1507 1507

  
1508 1508
        if (num_bits_prev_frame > 0) {
1509
            int remaining_packet_bits = s->buf_bit_size - get_bits_count(gb);
1510
            if (num_bits_prev_frame >= remaining_packet_bits) {
1511
                num_bits_prev_frame = remaining_packet_bits;
1512
                s->packet_done = 1;
1513
            }
1514

  
1509 1515
            /** append the previous frame data to the remaining data from the
1510 1516
                previous packet to create a full frame */
1511 1517
            save_bits(s, gb, num_bits_prev_frame, 1);

Also available in: Unified diff