Revision 74e21d03 libavformat/wc3movie.c

View differences:

libavformat/wc3movie.c
55 55
#define WC3_AUDIO_BITS 16
56 56

  
57 57
/* nice, constant framerate */
58
#define WC3_FRAME_PTS_INC (90000 / 15)
58
#define WC3_FRAME_FPS 15
59 59

  
60 60
#define PALETTE_SIZE (256 * 3)
61 61
#define PALETTE_COUNT 256
......
239 239
    st = av_new_stream(s, 0);
240 240
    if (!st)
241 241
        return AVERROR(ENOMEM);
242
    av_set_pts_info(st, 33, 1, 90000);
242
    av_set_pts_info(st, 33, 1, WC3_FRAME_FPS);
243 243
    wc3->video_stream_index = st->index;
244 244
    st->codec->codec_type = CODEC_TYPE_VIDEO;
245 245
    st->codec->codec_id = CODEC_ID_XAN_WC3;
......
253 253
    st = av_new_stream(s, 0);
254 254
    if (!st)
255 255
        return AVERROR(ENOMEM);
256
    av_set_pts_info(st, 33, 1, 90000);
256
    av_set_pts_info(st, 33, 1, WC3_FRAME_FPS);
257 257
    wc3->audio_stream_index = st->index;
258 258
    st->codec->codec_type = CODEC_TYPE_AUDIO;
259 259
    st->codec->codec_id = CODEC_ID_PCM_S16LE;
......
356 356
                ret = AVERROR(EIO);
357 357

  
358 358
            /* time to advance pts */
359
            wc3->pts += WC3_FRAME_PTS_INC;
359
            wc3->pts++;
360 360

  
361 361
            packet_read = 1;
362 362
            break;

Also available in: Unified diff