avoid initializing pts for not decoded streams
Originally committed as revision 2284 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
61890b02b3
commit
211f2123c5
2
ffmpeg.c
2
ffmpeg.c
@ -1121,6 +1121,7 @@ static int av_encode(AVFormatContext **output_files,
|
|||||||
ist = ist_table[i];
|
ist = ist_table[i];
|
||||||
is = input_files[ist->file_index];
|
is = input_files[ist->file_index];
|
||||||
ist->pts = 0;
|
ist->pts = 0;
|
||||||
|
if (ist->decoding_needed) {
|
||||||
switch (ist->st->codec.codec_type) {
|
switch (ist->st->codec.codec_type) {
|
||||||
case CODEC_TYPE_AUDIO:
|
case CODEC_TYPE_AUDIO:
|
||||||
av_frac_init(&ist->next_pts,
|
av_frac_init(&ist->next_pts,
|
||||||
@ -1134,6 +1135,7 @@ static int av_encode(AVFormatContext **output_files,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* compute buffer size max (should use a complete heuristic) */
|
/* compute buffer size max (should use a complete heuristic) */
|
||||||
for(i=0;i<nb_input_files;i++) {
|
for(i=0;i<nb_input_files;i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user