History

avconv: flush filtered frames before reconfiguring filters

This prevents lost frames after a resolution change.

Janne Grunau committed 14 years ago

Commit 2f340211 parent a5ea6231 file · +4 −0Browse files

Unified · Split

avconv.c+4−0
@@ -1245,6 +1245,10 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output) · 1244 unmodified lines
1245 ist->resample_width, ist->resample_height, av_get_pix_fmt_name(ist->resample_pix_fmt),1245 ist->resample_width, ist->resample_height, av_get_pix_fmt_name(ist->resample_pix_fmt),
1246 decoded_frame->width, decoded_frame->height, av_get_pix_fmt_name(decoded_frame->format));1246 decoded_frame->width, decoded_frame->height, av_get_pix_fmt_name(decoded_frame->format));
1247 1247
1248 ret = poll_filters();
1249 if (ret < 0 && (ret != AVERROR_EOF && ret != AVERROR(EAGAIN)))
1250 av_log(NULL, AV_LOG_ERROR, "Error while filtering.\n");
1251
1248 ist->resample_width = decoded_frame->width;1252 ist->resample_width = decoded_frame->width;
1249 ist->resample_height = decoded_frame->height;1253 ist->resample_height = decoded_frame->height;
1250 ist->resample_pix_fmt = decoded_frame->format;1254 ist->resample_pix_fmt = decoded_frame->format;

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