Revision 451b353d libavformat/iff.c

View differences:

libavformat/iff.c
256 256
        pkt->flags |= PKT_FLAG_KEY;
257 257

  
258 258
    if(s->streams[0]->codec->codec_type == CODEC_TYPE_AUDIO) {
259
    iff->sent_bytes += PACKET_SIZE;
259
        iff->sent_bytes += PACKET_SIZE;
260 260
    } else {
261 261
        iff->sent_bytes = iff->body_size;
262 262
    }
263 263
    pkt->stream_index = 0;
264 264
    if(s->streams[0]->codec->codec_type == CODEC_TYPE_AUDIO) {
265
    pkt->pts = iff->audio_frame_count;
266
    iff->audio_frame_count += ret / s->streams[0]->codec->channels;
265
        pkt->pts = iff->audio_frame_count;
266
        iff->audio_frame_count += ret / s->streams[0]->codec->channels;
267 267
    }
268 268
    return ret;
269 269
}

Also available in: Unified diff