History

avisynth: set duration of audio streams

Hendrik Leppkes committed 12 years ago

Commit ae8e2d71 parent 656fe7e1 file · +1 −0Browse files

Unified · Split

libavformat/avisynth.c+1−0
@@ -294,6 +294,7 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st) · 293 unmodified lines
294 st->codec->channels = avs->vi->nchannels;294 st->codec->channels = avs->vi->nchannels;
295 st->time_base = (AVRational) { 1,295 st->time_base = (AVRational) { 1,
296 avs->vi->audio_samples_per_second };296 avs->vi->audio_samples_per_second };
297 st->duration = avs->vi->num_audio_samples;
297 298
298 switch (avs->vi->sample_type) {299 switch (avs->vi->sample_type) {
299 case AVS_SAMPLE_INT8:300 case AVS_SAMPLE_INT8:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t