ALSA encoder: correctly set time_base.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 30 Jun 2011 17:47:52 +0000 (19:47 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Fri, 1 Jul 2011 07:44:54 +0000 (09:44 +0200)
libavdevice/alsa-audio-enc.c

index a53c176..22a1ea7 100644 (file)
@@ -61,6 +61,7 @@ static av_cold int audio_write_header(AVFormatContext *s1)
                st->codec->sample_rate, sample_rate);
         goto fail;
     }
+    av_set_pts_info(st, 64, 1, sample_rate);
 
     return res;