comparison mencoder.c @ 31919:d9a6b45b8ef9

Deobfuscate mencoder decode_video call.
author reimar
date Sat, 21 Aug 2010 11:19:45 +0000
parents ef30e1505969
children ff8a2ac939ad
comparison
equal deleted inserted replaced
31918:3103448dcf28 31919:d9a6b45b8ef9
1528 mux_v->buffer=(unsigned char *)&decoded_frameno; // tricky 1528 mux_v->buffer=(unsigned char *)&decoded_frameno; // tricky
1529 if(skip_flag<=0) muxer_write_chunk(mux_v,sizeof(int),AVIIF_KEYFRAME, MP_NOPTS_VALUE, MP_NOPTS_VALUE); 1529 if(skip_flag<=0) muxer_write_chunk(mux_v,sizeof(int),AVIIF_KEYFRAME, MP_NOPTS_VALUE, MP_NOPTS_VALUE);
1530 break; 1530 break;
1531 default: 1531 default:
1532 // decode_video will callback down to ve_*.c encoders, through the video filters 1532 // decode_video will callback down to ve_*.c encoders, through the video filters
1533 {void *decoded_frame = decode_video(sh_video,frame_data.start,frame_data.in_size, 1533 {
1534 skip_flag>0 && (!sh_video->vfilter || ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter, VFCTRL_SKIP_NEXT_FRAME, 0) != CONTROL_TRUE), MP_NOPTS_VALUE); 1534 int drop_frame = skip_flag > 0 &&
1535 (!sh_video->vfilter ||
1536 ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter, VFCTRL_SKIP_NEXT_FRAME, 0) != CONTROL_TRUE);
1537 void *decoded_frame = decode_video(sh_video,frame_data.start,frame_data.in_size,
1538 drop_frame, MP_NOPTS_VALUE);
1535 blit_frame = decoded_frame && filter_video(sh_video, decoded_frame, MP_NOPTS_VALUE);} 1539 blit_frame = decoded_frame && filter_video(sh_video, decoded_frame, MP_NOPTS_VALUE);}
1536 1540
1537 if (sh_video->vf_initialized < 0) mencoder_exit(1, NULL); 1541 if (sh_video->vf_initialized < 0) mencoder_exit(1, NULL);
1538 1542
1539 if(!blit_frame){ 1543 if(!blit_frame){