comparison mplayer.c @ 36323:335349ca2137

Do not increment frame drop count when at EOF.
author reimar
date Mon, 12 Aug 2013 19:37:33 +0000
parents a73127c786e8
children 95ea180551c0
comparison
equal deleted inserted replaced
36322:d649e84ea8d5 36323:335349ca2137
1786 int in_size; 1786 int in_size;
1787 int hit_eof = 0; 1787 int hit_eof = 0;
1788 double pts; 1788 double pts;
1789 1789
1790 while (1) { 1790 while (1) {
1791 int drop_frame = check_framedrop(sh_video->frametime); 1791 int drop_frame = 0;
1792 void *decoded_frame; 1792 void *decoded_frame;
1793 current_module = "decode video"; 1793 current_module = "decode video";
1794 // XXX Time used in this call is not counted in any performance 1794 // XXX Time used in this call is not counted in any performance
1795 // timer now, OSD is not updated correctly for filter-added frames 1795 // timer now, OSD is not updated correctly for filter-added frames
1796 if (vf_output_queued_frame(sh_video->vfilter)) 1796 if (vf_output_queued_frame(sh_video->vfilter))
1801 // try to extract last frames in case of decoder lag 1801 // try to extract last frames in case of decoder lag
1802 in_size = 0; 1802 in_size = 0;
1803 start = NULL; 1803 start = NULL;
1804 pts = MP_NOPTS_VALUE; 1804 pts = MP_NOPTS_VALUE;
1805 hit_eof = 1; 1805 hit_eof = 1;
1806 drop_frame = 0; 1806 } else
1807 } 1807 drop_frame = check_framedrop(sh_video->frametime);
1808 if (in_size > max_framesize) 1808 if (in_size > max_framesize)
1809 max_framesize = in_size; 1809 max_framesize = in_size;
1810 current_module = "decode video"; 1810 current_module = "decode video";
1811 decoded_frame = decode_video(sh_video, start, in_size, drop_frame, pts, NULL); 1811 decoded_frame = decode_video(sh_video, start, in_size, drop_frame, pts, NULL);
1812 if (decoded_frame) { 1812 if (decoded_frame) {