]> git.sesse.net Git - mlt/commitdiff
Fix interlace flags in rawvideo output.
authorDan Dennedy <dan@dennedy.org>
Mon, 21 Jan 2013 05:00:37 +0000 (21:00 -0800)
committerDan Dennedy <dan@dennedy.org>
Mon, 21 Jan 2013 05:00:37 +0000 (21:00 -0800)
src/modules/avformat/consumer_avformat.c

index 8c96cb08f7d68b18aa6eb284ae6a30a957031e9a..9710be3c15d4aa5623b086440629e283f2ad0e64 100644 (file)
@@ -1844,6 +1844,10 @@ static void *consumer_thread( void *arg )
                                                AVPacket pkt;
                                                av_init_packet(&pkt);
 
+                                               // Set frame interlace hints
+                                               c->coded_frame->interlaced_frame = !mlt_properties_get_int( frame_properties, "progressive" );
+                                               c->coded_frame->top_field_first = mlt_properties_get_int( frame_properties, "top_field_first" );
+
                                                pkt.flags |= PKT_FLAG_KEY;
                                                pkt.stream_index= video_st->index;
                                                pkt.data= (uint8_t *)output;