called at the beginning of a frame to get cr buffer for it. buffer type (size, hints) must be the same. lavc won't check it. lavc will pass previous buffer in pic, function should return same buffer or new buffer with old frame "painted" into it. if pic.data == NULL must behave like get_buffer().
Referenced by decode_frame().