ff-save: tune audio encoding to work for both .ogv and .mkv containers

parent 3d6297e9
......@@ -424,7 +424,7 @@ write_audio_frame (GeglProperties *o, AVFormatContext * oc, AVStream * st)
fprintf (stderr, "eeeek unhandled audio format\n");
break;
}
frame->pts = av_rescale_q (p->next_apts, (AVRational){1, c->sample_rate}, c->time_base);
frame->pts = av_rescale_q (p->next_apts, (AVRational){1, c->sample_rate}, st->time_base);
p->next_apts += sample_count;
av_frame_make_writable (frame);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment