[vlc-commits] Fix frame rate output from deinterlacer
Steinar H. Gunderson
git at videolan.org
Tue Jun 11 21:05:41 CEST 2013
vlc | branch: master | Steinar H. Gunderson <steinar+vlc at gunderson.no> | Sat Jun 8 22:41:07 2013 +0200| [b46940a4e186d612aa8e754c8fe48b6535d6fe3a] | committer: Rémi Denis-Courmont
Fix frame rate output from deinterlacer
In the deinterlacer module, when b_double_rate is set, actually
double the frame rate in the output format.
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b46940a4e186d612aa8e754c8fe48b6535d6fe3a
---
modules/video_filter/deinterlace/deinterlace.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/video_filter/deinterlace/deinterlace.c b/modules/video_filter/deinterlace/deinterlace.c
index 4392a0c..64aef0f 100644
--- a/modules/video_filter/deinterlace/deinterlace.c
+++ b/modules/video_filter/deinterlace/deinterlace.c
@@ -240,6 +240,11 @@ void GetOutputFormat( filter_t *p_filter,
p_dst->i_sar_den *= 2;
}
+ if( p_sys->b_double_rate )
+ {
+ p_dst->i_frame_rate *= 2;
+ }
+
if( p_sys->i_mode == DEINTERLACE_PHOSPHOR &&
2 * p_sys->chroma->p[1].h.num == p_sys->chroma->p[1].h.den &&
2 * p_sys->chroma->p[2].h.num == p_sys->chroma->p[2].h.den &&
More information about the vlc-commits
mailing list