]> git.sesse.net Git - mlt/commitdiff
producer_avformat.c: fix setting int property as double
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 10 Jun 2007 06:14:00 +0000 (06:14 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 10 Jun 2007 06:14:00 +0000 (06:14 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@982 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/avformat/producer_avformat.c

index d2fde858b93fa8ad6cc3632f962ad27934b2b8af..a24a34ddf71732186fde409228d1fc050497560a 100644 (file)
@@ -652,7 +652,7 @@ static int producer_get_image( mlt_frame frame, uint8_t **buffer, mlt_image_form
                                mlt_properties_set_int( frame_properties, "top_field_first", av_frame->top_field_first );
                                convert_image( av_frame, *buffer, codec_context->pix_fmt, *format, *width, *height );
                                mlt_properties_set_data( frame_properties, "image", *buffer, size, (mlt_destructor)mlt_pool_release, NULL );
-                               mlt_properties_set_double( properties, "_current_position", int_position );
+                               mlt_properties_set_int( properties, "_current_position", int_position );
                        }
 
                        // We're finished with this packet regardless