Merge master.
[dcpomatic.git] / src / lib / filter_graph.cc
index 4564033d5379dd5d6770addfdac826cff447237f..472480de300dee5834555ddde7aba22f5fb369a2 100644 (file)
@@ -40,6 +40,7 @@ extern "C" {
 using std::stringstream;
 using std::string;
 using std::list;
+using std::cout;
 using boost::shared_ptr;
 using boost::weak_ptr;
 using libdcp::Size;
@@ -86,8 +87,8 @@ FilterGraph::FilterGraph (shared_ptr<const FFmpegContent> content, libdcp::Size
        stringstream a;
        a << "video_size=" << _size.width << "x" << _size.height << ":"
          << "pix_fmt=" << _pixel_format << ":"
-         << "time_base=0/1:"
-         << "pixel_aspect=0/1";
+         << "time_base=1/1:"
+         << "pixel_aspect=1/1";
 
        int r;
 
@@ -153,6 +154,7 @@ FilterGraph::process (AVFrame* frame)
                }
 
                images.push_back (shared_ptr<Image> (new SimpleImage (_frame)));
+               av_frame_unref (_frame);
        }
        
        return images;