On Sat, May 20, 2017 at 9:36 AM, 朱伟滔 <15018405...@163.com> wrote: > in H264 sps,I set a different sps > bool frame_cropping_flag = 1; > int frame_crop_left_offset = 100; > int frame_crop_right_offset = 100; > int frame_crop_top_offset = 100; > int frame_crop_bottom_offset = 100; > > when I decode the video and show it , dxva or vaapi just show the top left > corner(0,0), How can I get left offset or top offset in AVFrame? >
Right now, you cannot. However we're currently in the process of integrating a new API that can export a cropping rectangle so it can be used with Hardware decoding, so with any luck it'll be available in Git Master soon, and in the next release. - Hendrik _______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user