Rewrite encoder input format handling.

The previous approach can't scale to all of or new formats. This also
fixes YV12 input.

Change-Id: Ic4ad333770bbbd0e921f519199b57862afcbe1ab
This commit is contained in:
Alex Converse
2014-05-16 12:29:36 -07:00
parent 1bec51d666
commit 6c2e88e932
2 changed files with 25 additions and 9 deletions

View File

@@ -89,7 +89,7 @@ struct VpxInputContext {
enum VideoFileType file_type;
uint32_t width;
uint32_t height;
int use_i420;
vpx_img_fmt_t fmt;
int only_i420;
uint32_t fourcc;
struct VpxRational framerate;