Browse Source

ALSA encoder: correctly set time_base.

Nicolas George 13 years ago
parent
commit
d1b029dec9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libavdevice/alsa-audio-enc.c

+ 1 - 0
libavdevice/alsa-audio-enc.c

@@ -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;