X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fmuxmp4.c;h=3f9b2314fa4bf02a698e016e46448520cb895b03;hb=eadad4f9ae3f2c929722ebd4474e1abeabc173c2;hp=0069716bf967d8929ec9004231ce01d566f922b9;hpb=33ea7a1abfeba545c4fa098b46f0e73c16e4392c;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/muxmp4.c b/libhb/muxmp4.c index 0069716b..3f9b2314 100644 --- a/libhb/muxmp4.c +++ b/libhb/muxmp4.c @@ -183,14 +183,14 @@ static int MP4Init( hb_mux_object_t * m ) MP4AddColr(m->file, mux_data->track, 6, 1, 6); } - if( job->pixel_ratio ) + if( job->anamorphic.mode ) { /* PASP atom for anamorphic video */ float width, height; - width = job->pixel_aspect_width; + width = job->anamorphic.par_width; - height = job->pixel_aspect_height; + height = job->anamorphic.par_height; MP4AddPixelAspectRatio(m->file, mux_data->track, (uint32_t)width, (uint32_t)height); @@ -390,7 +390,7 @@ static int MP4Init( hb_mux_object_t * m ) /* Add encoded-by metadata listing version and build date */ char *tool_string; tool_string = (char *)malloc(80); - snprintf( tool_string, 80, "HandBrake %s %i", HB_VERSION, HB_BUILD); + snprintf( tool_string, 80, "HandBrake %s %i", HB_PROJECT_VERSION, HB_PROJECT_BUILD); MP4SetMetadataTool(m->file, tool_string); free(tool_string); @@ -492,7 +492,8 @@ static int MP4Mux( hb_mux_object_t * m, hb_mux_data_t * mux_data, buf->size, duration, offset, - ((buf->frametype & HB_FRAME_KEY) != 0) ) ) + ( job->vcodec == HB_VCODEC_X264 && mux_data == job->mux_data ) ? + ( buf->frametype == HB_FRAME_IDR ) : ( ( buf->frametype & HB_FRAME_KEY ) != 0 ) ) ) { hb_error("Failed to write to output file, disk full?"); *job->die = 1;