Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/Jackarain/avplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Nov 30, 2012
2 parents 36d83a6 + b1d63a9 commit 16a8d27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion video/y4m_render.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "ins.h"
#include <stdio.h>
#include "y4m_render.h"


Expand Down Expand Up @@ -49,7 +50,7 @@ bool y4m_render::init_render(void* ctx, int w, int h, int pix_fmt)
bool y4m_render::init_render(void* ctx, int w, int h, int pix_fmt, float fps)
{
char filename[1024] = { 0 };
sprintf(filename, "%x.y4m", ctx); // 随便构建的文件名.
sprintf(filename, "%x.y4m", (size_t)ctx); // 随便构建的文件名.
m_yuv_out = create_y4m(filename, w, h, fps);
m_image = (char*)malloc(w * h * 3 / 2);
m_image_height = h;
Expand Down

0 comments on commit 16a8d27

Please sign in to comment.