avconv: fix handling attachments in init_output_stream
The current code assumes that encoding_needed is simply an inverse of stream_copy, which is not true for manually attached files (for which neither of those is true).
This commit is contained in:
parent
73c6ec6d65
commit
5e1840622c
2
avconv.c
2
avconv.c
@ -1734,7 +1734,7 @@ static int init_output_stream(OutputStream *ost, char *error, int error_len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ost->st->time_base = ost->enc_ctx->time_base;
|
ost->st->time_base = ost->enc_ctx->time_base;
|
||||||
} else {
|
} else if (ost->stream_copy) {
|
||||||
ret = av_opt_set_dict(ost->enc_ctx, &ost->encoder_opts);
|
ret = av_opt_set_dict(ost->enc_ctx, &ost->encoder_opts);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user