changeset 24634:221ad386f6e4

remove useless int->double conversion
author henry
date Sat, 29 Sep 2007 07:49:02 +0000
parents 2bc6fcc627f4
children 0ad5adc5f363
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Sat Sep 29 07:42:31 2007 +0000
+++ b/libmpdemux/demux_lavf.c	Sat Sep 29 07:49:02 2007 +0000
@@ -270,9 +270,8 @@
 
     ap.prealloced_context = 1;
     if(opt_probesize) {
-        double d = (double) opt_probesize;
-        opt = av_set_double(avfc, "probesize", opt_probesize);
-        if(!opt) mp_msg(MSGT_HEADER,MSGL_ERR, "demux_lavf, couldn't set option probesize to %.3f\r\n", d);
+        opt = av_set_int(avfc, "probesize", opt_probesize);
+        if(!opt) mp_msg(MSGT_HEADER,MSGL_ERR, "demux_lavf, couldn't set option probesize to %u\n", opt_probesize);
     }
 
     if(demuxer->stream->url)