|
|
@ -2325,7 +2325,6 @@ static int fg_output_step(OutputFilterPriv *ofp, FilterGraphThread *fgt, |
|
|
|
AVFrame *frame) |
|
|
|
AVFrame *frame) |
|
|
|
{ |
|
|
|
{ |
|
|
|
FilterGraphPriv *fgp = fgp_from_fg(ofp->ofilter.graph); |
|
|
|
FilterGraphPriv *fgp = fgp_from_fg(ofp->ofilter.graph); |
|
|
|
OutputStream *ost = ofp->ofilter.ost; |
|
|
|
|
|
|
|
AVFilterContext *filter = ofp->filter; |
|
|
|
AVFilterContext *filter = ofp->filter; |
|
|
|
FrameData *fd; |
|
|
|
FrameData *fd; |
|
|
|
int ret; |
|
|
|
int ret; |
|
|
@ -2379,7 +2378,7 @@ static int fg_output_step(OutputFilterPriv *ofp, FilterGraphThread *fgt, |
|
|
|
if (!fgp->is_meta) |
|
|
|
if (!fgp->is_meta) |
|
|
|
fd->bits_per_raw_sample = 0; |
|
|
|
fd->bits_per_raw_sample = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (ost->type == AVMEDIA_TYPE_VIDEO) { |
|
|
|
if (ofp->ofilter.type == AVMEDIA_TYPE_VIDEO) { |
|
|
|
if (!frame->duration) { |
|
|
|
if (!frame->duration) { |
|
|
|
AVRational fr = av_buffersink_get_frame_rate(filter); |
|
|
|
AVRational fr = av_buffersink_get_frame_rate(filter); |
|
|
|
if (fr.num > 0 && fr.den > 0) |
|
|
|
if (fr.num > 0 && fr.den > 0) |
|
|
|